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

View file

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