mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 08:38:32 +02:00
Merge pull request #417 from philipsd6/2.0-strip_entry_body
Fully strip title and body after SENTENCE_SPLITTER search
This commit is contained in:
commit
dbf912c661
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