diff options
-rw-r--r-- | pyAggr3g470r.py | 3 | ||||
-rw-r--r-- | utils.py | 1 |
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' + \ @@ -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) |