Skip to content

Commit

Permalink
json-schema: fix extra newline at the end of files
Browse files Browse the repository at this point in the history
  • Loading branch information
balinthaller committed Mar 9, 2021
1 parent 5bdd944 commit cf7e35c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion carte_cli/utils/frontmatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def dump(filename, metadata, content):
yaml.dump(metadata, buf)
buf.write(FRONTMATTER_SEPARATOR)
if content is not None:
buf.write(content)
buf.write(content.strip())

with open(filename, "w") as f:
print(buf.getvalue(), file=f)

0 comments on commit cf7e35c

Please sign in to comment.