chore: Improve stdout newline handling

Always strip all newlines of the end of all entries, and then add
a single newline back between entries.
This commit is contained in:
Marty Oehme 2024-01-23 09:49:31 +01:00
parent 2880c06f53
commit 9169e1c98a
Signed by: Marty
GPG Key ID: EDBF2ED917B2EF6A
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ def to_stdout(
"""
output: str = formatter(document, annotations)
if output:
print(output.rstrip("\n"))
print("{output}\n".format(output=output.rstrip("\n")))
def to_notes(