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

Add trailing newline to pixi.toml and .gitignore #216

Merged
merged 1 commit into from
Jul 13, 2023

Conversation

pavelzw
Copy link
Contributor

@pavelzw pavelzw commented Jul 13, 2023

Closes #214

https://docs.rs/minijinja/latest/minijinja/syntax/index.html#trailing-newlines

MiniJinja, like Jinja2, will remove one trailing newline from the end of the file automatically on parsing. This lets templates produce a consistent output no matter if the editor adds a trailing newline or not. If one wants a trailing newline an extra newline can be added or the code rendering it adds it manually.

@baszalmstra baszalmstra merged commit 2d93ad4 into prefix-dev:main Jul 13, 2023
@baszalmstra
Copy link
Contributor

thaaaank youuu 😁

@pavelzw pavelzw deleted the trailing-newline branch July 14, 2023 11:11
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.

pixi init doesn't have a newline at the end of the file
2 participants