mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 08:38:32 +02:00
update formatting function to better account for indenting (#1541)
This commit is contained in:
parent
e695180049
commit
ec8bbd2187
1 changed files with 5 additions and 1 deletions
|
@ -89,5 +89,9 @@ def _add_extra_style_args_if_needed(args, msg):
|
|||
|
||||
|
||||
def format_msg_text(msg: Message) -> Text:
|
||||
text = textwrap.dedent(msg.text.value.format(**msg.params)).strip()
|
||||
text = textwrap.dedent(msg.text.value)
|
||||
text = text.format(**msg.params)
|
||||
# dedent again in case inserted text needs it
|
||||
text = textwrap.dedent(text)
|
||||
text = text.strip()
|
||||
return Text(text)
|
||||
|
|
Loading…
Add table
Reference in a new issue