mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 16:48:31 +02:00
remove the leading whitespace introduced by textwrap
This commit is contained in:
parent
201e80142e
commit
d5aa29f844
1 changed files with 4 additions and 4 deletions
|
@ -35,11 +35,11 @@ class Entry:
|
||||||
if self.journal.config['linewrap']:
|
if self.journal.config['linewrap']:
|
||||||
title = textwrap.fill(date_str + " " + self.title, self.journal.config['linewrap'])
|
title = textwrap.fill(date_str + " " + self.title, self.journal.config['linewrap'])
|
||||||
body = "\n".join([
|
body = "\n".join([
|
||||||
textwrap.fill(line+" ",
|
textwrap.fill(line+" ",
|
||||||
self.journal.config['linewrap'],
|
self.journal.config['linewrap'],
|
||||||
initial_indent="| ",
|
initial_indent="| ",
|
||||||
subsequent_indent="| ",
|
subsequent_indent="| ",
|
||||||
drop_whitespace=False)
|
drop_whitespace=False).replace(' ', ' ')
|
||||||
for line in self.body.strip().splitlines()
|
for line in self.body.strip().splitlines()
|
||||||
])
|
])
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Reference in a new issue