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

insert_final_newline: don't do so on an empty file #61

Merged
merged 3 commits into from
Sep 24, 2024

Conversation

cxw42
Copy link
Member

@cxw42 cxw42 commented Sep 23, 2024

Clarify, in the spec, that editors must not insert newlines into empty files (otherwise you could never edit a zero-byte file!).

Fixes #15.


📚 Documentation preview 📚: https://editorconfig-specification--61.org.readthedocs.build/

index.rst Outdated Show resolved Hide resolved
@xuhdev xuhdev enabled auto-merge (squash) September 24, 2024 02:53
@xuhdev xuhdev enabled auto-merge (squash) September 24, 2024 02:53
@xuhdev xuhdev merged commit bd9df36 into editorconfig:master Sep 24, 2024
1 check passed
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.

Clarification on insert_final_newline behavior for empty files
2 participants