mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-11 00:58:31 +02:00
Fully strip title and body after SENTENCE_SPLITTER search
This commit is contained in:
parent
4a871aff32
commit
1ac5444051
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue