aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcedricbonhomme <devnull@localhost>2010-03-06 20:32:14 +0100
committercedricbonhomme <devnull@localhost>2010-03-06 20:32:14 +0100
commit559b9179905f83fdb1fcf4e8d8423c26db6dfde3 (patch)
tree157d598a0e75dcea0fe0e4f42c9449db34332c6c
parentImprovement of display of description of article. Now articles are search by ... (diff)
downloadnewspipe-559b9179905f83fdb1fcf4e8d8423c26db6dfde3.tar.gz
newspipe-559b9179905f83fdb1fcf4e8d8423c26db6dfde3.tar.bz2
newspipe-559b9179905f83fdb1fcf4e8d8423c26db6dfde3.zip
Added a link to the page of the GPL v3 license.
-rw-r--r--pyAggr3g470r.py3
-rw-r--r--utils.py1
2 files changed, 3 insertions, 1 deletions
diff --git a/pyAggr3g470r.py b/pyAggr3g470r.py
index eb9e7956..61a66670 100644
--- a/pyAggr3g470r.py
+++ b/pyAggr3g470r.py
@@ -50,7 +50,8 @@ htmlheader = '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"
'</head>\n'
htmlfooter = '<p>This software is under GPLv3 license. You are welcome to copy, modify or' + \
- ' redistribute the source code according to the GPLv3 license.</p></div>\n' + \
+ ' redistribute the source code according to the' + \
+ ' <a href="http://www.gnu.org/licenses/gpl-3.0.txt">GPLv3</a> license.</p></div>\n' + \
'</body>\n</html>'
htmlnav = '<body>\n<h1><a name="top"><a href="/">pyAggr3g470r - RSS Feed Reader</a></a></h1>\n<a' + \
diff --git a/utils.py b/utils.py
index 012f8bfc..f6a98677 100644
--- a/utils.py
+++ b/utils.py
@@ -27,6 +27,7 @@ def detect_language(text):
Detect the language of a text.
English, French or other (not detected).
"""
+ text = text.strip()
try:
text_stream = streams.Stream(StringIO(text))
lang = langdet.LanguageDetector.detect(text_stream)
bgstack15