summaryrefslogtreecommitdiffstats
path: root/core/frontmatter.py
diff options
context:
space:
mode:
Diffstat (limited to 'core/frontmatter.py')
-rw-r--r--core/frontmatter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/frontmatter.py b/core/frontmatter.py
index 4e9eff3..06c36d1 100644
--- a/core/frontmatter.py
+++ b/core/frontmatter.py
@@ -24,5 +24,5 @@ def write_frontmatter(path: Path, frontmatter: dict, body: str) -> None:
doc = tomlkit.loads(original_toml)
for k, v in frontmatter.items():
doc[k] = v
- new_text = f"+++\n{tomlkit.dumps(doc)}+++\n\n{body}"
+ new_text = f"+++\n{tomlkit.dumps(doc).strip()}\n+++\n\n{body}"
path.write_text(new_text, encoding="utf-8")