-
-
Notifications
You must be signed in to change notification settings - Fork 43
Open
Milestone
Description
Hi,
here an issue I tripped over (or minor problem of faithful round-tripping). I wanted to read a post, manipulate the frontmatter and write it back out. Afterwards, I programmatically append things to the post.
when I do
page_post = frontmatter.load(post_path)
# change the metadata somehow
frontmatter.dump(page_post, post_path)
Now, the newlines at the end of the post have disappeared. In my case, this was a problem as I relied on them for syntactically correct appending.
darkdragon-001 and giograno
Metadata
Metadata
Assignees
Labels
No labels