[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 8615679beb
commit cccdc157fb

View file

@ -115,7 +115,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"