From c78d7656214780edc0b35fc8812ca47a127506df Mon Sep 17 00:00:00 2001 From: MinchinWeb Date: Sun, 10 May 2015 13:46:38 -0600 Subject: [PATCH] [DayOne] remove extra spaces from the titles of edited DayOne entries Otherwise, a leading space was being introduced --- jrnl/DayOneJournal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jrnl/DayOneJournal.py b/jrnl/DayOneJournal.py index af82333c..d2bb785a 100644 --- a/jrnl/DayOneJournal.py +++ b/jrnl/DayOneJournal.py @@ -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"