Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nk9
Copy link
Contributor

@nk9 nk9 commented Nov 19, 2022

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
Copy link

ajunior commented May 4, 2023

Any news about this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants