From b2147d53c51b87e5c60620207b0d9254c030e9cc Mon Sep 17 00:00:00 2001 From: Philip Douglass Date: Mon, 25 Jan 2016 15:29:46 -0500 Subject: [PATCH] Fully strip title and body after SENTENCE_SPLITTER search --- jrnl/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jrnl/util.py b/jrnl/util.py index 0d924514..f6a7735f 100644 --- a/jrnl/util.py +++ b/jrnl/util.py @@ -209,4 +209,4 @@ def split_title(text): punkt = SENTENCE_SPLITTER.search(text) if not punkt: return text, "" - return text[:punkt.end()].rstrip(), text[punkt.end():].lstrip() + return text[:punkt.end()].strip(), text[punkt.end():].strip()