mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 16:48:31 +02:00
Clean up text wrapping once and for all
This commit is contained in:
parent
3b7508eac6
commit
eec009fd18
1 changed files with 2 additions and 2 deletions
|
@ -78,11 +78,11 @@ class Entry:
|
|||
title = textwrap.fill(date_str + " " + self.title, self.journal.config['linewrap'])
|
||||
body = "\n".join([
|
||||
textwrap.fill(
|
||||
(line + " ") if (len(line) == 0) else line,
|
||||
line,
|
||||
self.journal.config['linewrap'],
|
||||
initial_indent="| ",
|
||||
subsequent_indent="| ",
|
||||
drop_whitespace=True)
|
||||
drop_whitespace=True) or "| "
|
||||
for line in self.body.rstrip(" \n").splitlines()
|
||||
])
|
||||
else:
|
||||
|
|
Loading…
Add table
Reference in a new issue