[DayOne] remove extra spaces from the titles of edited DayOne entries

Otherwise, a leading space was being introduced
This commit is contained in:
MinchinWeb 2015-05-10 13:46:38 -06:00
parent b0d3c29abe
commit c78d765621

View file

@ -146,7 +146,7 @@ class DayOne(Journal.Journal):
if line.endswith("*"):
current_entry.starred = True
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
elif current_entry:
current_entry.body += line + "\n"