make it lstrip not strip

This commit is contained in:
Eshan Ramesh 2020-05-19 16:36:13 -04:00
parent 7521960f1c
commit 8f39b12198

View file

@ -262,7 +262,7 @@ def slugify(string):
def split_title(text): def split_title(text):
"""Splits the first sentence off from a text.""" """Splits the first sentence off from a text."""
sep = SENTENCE_SPLITTER_ONLY_NEWLINE.search(text.strip()) sep = SENTENCE_SPLITTER_ONLY_NEWLINE.search(text.lstrip())
if not sep: if not sep:
sep = SENTENCE_SPLITTER.search(text) sep = SENTENCE_SPLITTER.search(text)
if not sep: if not sep: