From ff722417db28c4509c504071bc8fce7310c2ffe1 Mon Sep 17 00:00:00 2001 From: Craig Moyer Date: Thu, 28 Mar 2013 21:31:08 -0400 Subject: [PATCH] Fix issue where embedded decimal in title causes title to get cut off. --- jrnl/Journal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jrnl/Journal.py b/jrnl/Journal.py index fd101d9c..8147b536 100644 --- a/jrnl/Journal.py +++ b/jrnl/Journal.py @@ -252,7 +252,7 @@ class Journal(object): # Split raw text into title and body title_end = len(raw) - for separator in ".?!\n": + for separator in ["\n",". ","? ","! "]: sep_pos = raw.find(separator) if 1 < sep_pos < title_end: title_end = sep_pos