From 8e2989ef957274884281a04b0a401c15aef58d49 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 9e988f78..34979619 100644 --- a/jrnl/DayOneJournal.py +++ b/jrnl/DayOneJournal.py @@ -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"