mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-21 13:38: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
b0d3c29abe
commit
c78d765621
1 changed files with 1 additions and 1 deletions
|
@ -146,7 +146,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