mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-21 05:28:31 +02:00
make it lstrip not strip
This commit is contained in:
parent
7521960f1c
commit
8f39b12198
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Add table
Reference in a new issue