pre-commit-hooks
pre-commit-hooks copied to clipboard
Handle CRLF and CR EOL in end-of-file-fixer
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.
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)?