This commit is contained in:
notbalanced 2013-03-28 18:47:51 -07:00
commit d4eb5b4521

View file

@ -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