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

Preserve trailing newline in templates #979

Merged
merged 1 commit into from
Apr 24, 2024
Merged

Conversation

bluss
Copy link
Contributor

@bluss bluss commented Apr 1, 2024

Let initial files like pyproject.toml, .gitignore, __init__.py etc all keep their trailing newline so that they finish with a (single) newline.

Fixes #950

Let initial files like pyproject.toml, .gitignore, __init__.py etc all
keep their trailing newline so that they finish with a (single) newline.
Copy link
Member

@charliermarsh charliermarsh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes sense to me.

@charliermarsh charliermarsh merged commit da3fbb0 into astral-sh:main Apr 24, 2024
8 checks passed
@bluss bluss deleted the newline branch April 24, 2024 13:34
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.

Include trailing newline when rendering templates
2 participants