Merge pull request #417 from philipsd6/2.0-strip_entry_body

Fully strip title and body after SENTENCE_SPLITTER search
This commit is contained in:
Manuel Ebert 2016-04-07 13:15:12 -07:00
commit dbf912c661

View file

@ -209,4 +209,4 @@ def split_title(text):
punkt = SENTENCE_SPLITTER.search(text)
if not punkt:
return text, ""
return text[:punkt.end()].rstrip(), text[punkt.end():].lstrip()
return text[:punkt.end()].strip(), text[punkt.end():].strip()