mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 08:38:32 +02:00
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:
commit
f79f7cf849
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue