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:
parent
2880c06f53
commit
9169e1c98a
1 changed files with 1 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue