Skip to content

Commit

Permalink
revert title-body switch
Browse files Browse the repository at this point in the history
  • Loading branch information
eshrh committed May 19, 2020
1 parent cd6e532 commit aeafcd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jrnl/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,5 +254,5 @@ def split_title(text):
"""Splits the first sentence off from a text."""
punkt = SENTENCE_SPLITTER.search(text.strip())
if not punkt:
return text,""
return "",text
return text[: punkt.end()].strip(), text[punkt.end() :].strip()

0 comments on commit aeafcd3

Please sign in to comment.