mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 16:48:31 +02:00
Fix parsing issue
This commit is contained in:
parent
6c18b6f3b4
commit
b4e578b63a
2 changed files with 2 additions and 2 deletions
|
@ -85,7 +85,7 @@ class Journal(object):
|
|||
# Initialise our current entry
|
||||
entries = []
|
||||
current_entry = None
|
||||
date_blob_re = re.compile("^\[.+\] ")
|
||||
date_blob_re = re.compile("^\[[^\\]]+\] ")
|
||||
for line in journal_txt.splitlines():
|
||||
line = line.rstrip()
|
||||
date_blob = date_blob_re.findall(line)
|
||||
|
|
|
@ -58,8 +58,8 @@ older versions of jrnl anymore.
|
|||
else:
|
||||
plain_journals[journal_name] = path
|
||||
|
||||
longest_journal_name = max([len(journal) for journal in config['journals']])
|
||||
if encrypted_journals:
|
||||
longest_journal_name = max([len(journal) for journal in config['journals']])
|
||||
util.prompt("\nFollowing encrypted journals will be upgraded to jrnl {}:".format(__version__))
|
||||
for journal, path in encrypted_journals.items():
|
||||
util.prompt(" {:{pad}} -> {}".format(journal, path, pad=longest_journal_name))
|
||||
|
|
Loading…
Add table
Reference in a new issue