mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-07-04 07:26:14 +02:00
fixup! remove py2 remnants and use mocks in tests
This commit is contained in:
parent
5cee4fb783
commit
d47e1ed479
1 changed files with 1 additions and 1 deletions
|
@ -224,7 +224,7 @@ class Journal:
|
||||||
raw = raw.replace('\\n ', '\n').replace('\\n', '\n')
|
raw = raw.replace('\\n ', '\n').replace('\\n', '\n')
|
||||||
starred = False
|
starred = False
|
||||||
# Split raw text into title and body
|
# Split raw text into title and body
|
||||||
sep = re.search("\n|[\\?!.]+ +\n?", raw)
|
sep = re.search(r"\n|[?!.]+ +\n?", raw)
|
||||||
first_line = raw[:sep.end()].strip() if sep else raw
|
first_line = raw[:sep.end()].strip() if sep else raw
|
||||||
starred = False
|
starred = False
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue