python-frontmatter icon indicating copy to clipboard operation
python-frontmatter copied to clipboard

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

Open nk9 opened this issue 1 year ago • 1 comments

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.

nk9 avatar Nov 19 '22 20:11 nk9

Any news about this PR?

ajunior avatar May 04 '23 21:05 ajunior