mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 16:48:31 +02:00
Fix linewrap
If a line was exactly the length of `linewrap`, the extra space was causing the next line to be blank. But if the line is empty, we need the space to maintain the `| ` sidebar.
This commit is contained in:
parent
8c461c7f9c
commit
545d2c296a
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ 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+" ",
|
||||
textwrap.fill((line + " ") if (len(line) == 0) else line,
|
||||
self.journal.config['linewrap'],
|
||||
initial_indent="| ",
|
||||
subsequent_indent="| ",
|
||||
|
|
Loading…
Add table
Reference in a new issue