mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-20 13:08:31 +02:00
Better style in Entry.py
This commit is contained in:
parent
6145682a29
commit
baa3ffbebd
1 changed files with 6 additions and 7 deletions
|
@ -84,7 +84,7 @@ class Entry:
|
|||
self.journal.config['colors']['date'])
|
||||
|
||||
if not short and self.journal.config['linewrap']:
|
||||
# Color date and color / bold title
|
||||
# Color date / title and bold title
|
||||
title = ansiwrap.fill(date_str + " " +
|
||||
highlight_tags_maintain_background_color(self,
|
||||
self.title,
|
||||
|
@ -102,11 +102,10 @@ class Entry:
|
|||
initial_indent=indent,
|
||||
subsequent_indent=indent,
|
||||
drop_whitespace=True) or indent
|
||||
for line in body.splitlines()
|
||||
for line in body.rstrip(" \n").splitlines()
|
||||
])
|
||||
else:
|
||||
title = date_str + " " + \
|
||||
highlight_tags_maintain_background_color(self,
|
||||
title = date_str + " " + highlight_tags_maintain_background_color(self,
|
||||
self.title.rstrip("\n"),
|
||||
self.journal.config['colors']['title'],
|
||||
bold=True)
|
||||
|
|
Loading…
Add table
Reference in a new issue