revert title-body switch

This commit is contained in:
Eshan Ramesh 2020-05-19 16:08:42 -04:00
parent cd6e532568
commit aeafcd36c9

View file

@ -254,5 +254,5 @@ def split_title(text):
"""Splits the first sentence off from a text.""" """Splits the first sentence off from a text."""
punkt = SENTENCE_SPLITTER.search(text.strip()) punkt = SENTENCE_SPLITTER.search(text.strip())
if not punkt: if not punkt:
return text,"" return "",text
return text[: punkt.end()].strip(), text[punkt.end() :].strip() return text[: punkt.end()].strip(), text[punkt.end() :].strip()