pre-commit-hooks icon indicating copy to clipboard operation
pre-commit-hooks copied to clipboard

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

Open edobez opened this issue 8 months ago • 1 comments

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 avatar May 08 '25 07:05 edobez

Ok, I see your point.

What about leaving aside the detection logic and have an optional argument for choosing the desired EOL (defaulting to \n)?

edobez avatar May 24 '25 10:05 edobez