Fix issue where embedded decimal in title causes title to get cut off.

This commit is contained in:
Craig Moyer 2013-03-28 21:31:08 -04:00
parent 165d9b2d8d
commit ff722417db

View file

@ -252,7 +252,7 @@ class Journal(object):
# Split raw text into title and body # Split raw text into title and body
title_end = len(raw) title_end = len(raw)
for separator in ".?!\n": for separator in ["\n",". ","? ","! "]:
sep_pos = raw.find(separator) sep_pos = raw.find(separator)
if 1 < sep_pos < title_end: if 1 < sep_pos < title_end:
title_end = sep_pos title_end = sep_pos