Merge pull request #56 from notbalanced/master

Fixes issue where entry is split into title and body at decimal points in numbers.
This commit is contained in:
Manuel Ebert 2013-03-29 13:47:59 -07:00
commit 9a55b2c81b

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