mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-12 01:18:31 +02:00
[Dayone] remove extra spaces from the titles of edited DayOne entries
Otherwise, a leading space was being introduced
This commit is contained in:
parent
8615679beb
commit
cccdc157fb
1 changed files with 1 additions and 1 deletions
|
@ -115,7 +115,7 @@ class DayOne(Journal.Journal):
|
||||||
if line.endswith("*"):
|
if line.endswith("*"):
|
||||||
current_entry.starred = True
|
current_entry.starred = True
|
||||||
line = line[:-1]
|
line = line[:-1]
|
||||||
current_entry.title = line[len(date_blob) - 1:]
|
current_entry.title = line[len(date_blob) - 1:].strip()
|
||||||
current_entry.date = new_date
|
current_entry.date = new_date
|
||||||
elif current_entry:
|
elif current_entry:
|
||||||
current_entry.body += line + "\n"
|
current_entry.body += line + "\n"
|
||||||
|
|
Loading…
Add table
Reference in a new issue