mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-21 05:28:31 +02:00
revert title-body switch
This commit is contained in:
parent
cd6e532568
commit
aeafcd36c9
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||||
|
|
Loading…
Add table
Reference in a new issue