eyeseast / python-frontmatter

Parse and manage posts with YAML (or other) frontmatter
http://python-frontmatter.rtfd.io
MIT License
333 stars 42 forks source link

Include newline at the end of files generated by format(). #100

Open nk9 opened 1 year ago

nk9 commented 1 year ago

Posix mandates a newline at the end of a file. Presently, when frontmatter generates a string using format(), it doesn't include a newline at the end. Since dump() calls format() and then just saves that string, the file is generated without a newline.

I have proposed a solution in this PR, but perhaps you would prefer to have the EOF newline added only in the dump case.

ajunior commented 1 year ago

Any news about this PR?