Skip to content

Handle CRLF and CR EOL in end-of-file-fixer #1163

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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

edobez
Copy link

@edobez edobez commented May 8, 2025

Second attempt :-)

Correctly adding last-line ending based on the one detected at the first line.
Basically fixes the behavior for CRLF and CR based files.

edobez added 6 commits May 7, 2025 08:44
Case is for file using CRLF endings
Added case for which the file has mixed line endings.
In this case, default into using LF
for end of file line.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant