aboutsummaryrefslogtreecommitdiff
path: root/utils.py
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 /utils.py
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.
Diffstat (limited to 'utils.py')
-rw-r--r--utils.py1
1 files changed, 1 insertions, 0 deletions
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