Small update to parsing regex

This commit is contained in:
Manuel Ebert 2014-04-01 20:14:49 -07:00
parent 0a2dc73716
commit e649711ca4
3 changed files with 3 additions and 2 deletions

View file

@ -280,7 +280,7 @@ class Journal(object):
raw = raw.replace('\\n ', '\n').replace('\\n', '\n')
starred = False
# Split raw text into title and body
sep = re.search("\n|[\?!.]+ *", raw)
sep = re.search("\n|[\?!.]+ *\n?", raw)
title, body = (raw[:sep.end()], raw[sep.end():]) if sep else (raw, "")
starred = False
if not date: