mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-20 21:18:32 +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'])
|
self.journal.config['colors']['date'])
|
||||||
|
|
||||||
if not short and self.journal.config['linewrap']:
|
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 + " " +
|
title = ansiwrap.fill(date_str + " " +
|
||||||
highlight_tags_maintain_background_color(self,
|
highlight_tags_maintain_background_color(self,
|
||||||
self.title,
|
self.title,
|
||||||
|
@ -102,11 +102,10 @@ class Entry:
|
||||||
initial_indent=indent,
|
initial_indent=indent,
|
||||||
subsequent_indent=indent,
|
subsequent_indent=indent,
|
||||||
drop_whitespace=True) or indent
|
drop_whitespace=True) or indent
|
||||||
for line in body.splitlines()
|
for line in body.rstrip(" \n").splitlines()
|
||||||
])
|
])
|
||||||
else:
|
else:
|
||||||
title = date_str + " " + \
|
title = date_str + " " + highlight_tags_maintain_background_color(self,
|
||||||
highlight_tags_maintain_background_color(self,
|
|
||||||
self.title.rstrip("\n"),
|
self.title.rstrip("\n"),
|
||||||
self.journal.config['colors']['title'],
|
self.journal.config['colors']['title'],
|
||||||
bold=True)
|
bold=True)
|
||||||
|
|
Loading…
Add table
Reference in a new issue