mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-18 03:58:32 +02:00
Merge 8c5c47f2ca
into 9ffca1a7a6
This commit is contained in:
commit
0cf0535ce6
2 changed files with 5 additions and 4 deletions
|
@ -48,11 +48,11 @@ class Entry:
|
|||
if not short and self.journal.config['linewrap']:
|
||||
title = textwrap.fill(date_str + " " + self.title, self.journal.config['linewrap'])
|
||||
body = "\n".join([
|
||||
textwrap.fill((line + " ") if (len(line) == 0) else line,
|
||||
textwrap.fill(line,
|
||||
self.journal.config['linewrap'],
|
||||
initial_indent="| ",
|
||||
subsequent_indent="| ",
|
||||
drop_whitespace=False)
|
||||
initial_indent=self.journal.config['indent'] + " ",
|
||||
subsequent_indent=self.journal.config['indent'] + " ")
|
||||
or self.journal.config['indent']
|
||||
for line in self.body.rstrip(" \n").splitlines()
|
||||
])
|
||||
else:
|
||||
|
|
|
@ -29,6 +29,7 @@ class Journal(object):
|
|||
'tagsymbols': '@',
|
||||
'highlight': True,
|
||||
'linewrap': 80,
|
||||
'indent': "|"
|
||||
}
|
||||
self.config.update(kwargs)
|
||||
# Set up date parser
|
||||
|
|
Loading…
Add table
Reference in a new issue