mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-06-28 21:46:13 +02:00
Fixes writing new lines between entries
This commit is contained in:
parent
3317cf0109
commit
6a5a98919e
4 changed files with 9 additions and 9 deletions
|
@ -280,7 +280,7 @@ class Journal(object):
|
|||
raw = raw.replace('\\n ', '\n').replace('\\n', '\n')
|
||||
starred = False
|
||||
# Split raw text into title and body
|
||||
sep = re.search("\n|[\?.]+", raw)
|
||||
sep = re.search("\n|[\?!.]+ *", raw)
|
||||
title, body = (raw[:sep.end()], raw[sep.end():]) if sep else (raw, "")
|
||||
starred = False
|
||||
if not date:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue