From cf7e35cc22a369600b57f9f68842b8b7bfbad935 Mon Sep 17 00:00:00 2001 From: Balint Haller Date: Tue, 9 Mar 2021 09:33:32 +0100 Subject: [PATCH] json-schema: fix extra newline at the end of files --- carte_cli/utils/frontmatter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/carte_cli/utils/frontmatter.py b/carte_cli/utils/frontmatter.py index f40e6ba..6821dbb 100644 --- a/carte_cli/utils/frontmatter.py +++ b/carte_cli/utils/frontmatter.py @@ -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)