Closed edobez closed 4 months ago
end-of-file-fixer adds a LF before the last empty line, regardless of what are the EOL of the file. On Windows, where typical EOL are CRFL, leaves the files with mixed endings.
end-of-file-fixer
I added the following test line in end_of_file_fixer_test.py to reproduce the problem: (b'foo\r\nbar', 1, b'foo\r\nbar\r\n').
(b'foo\r\nbar', 1, b'foo\r\nbar\r\n')
please search the issue tracker
end-of-file-fixer
adds a LF before the last empty line, regardless of what are the EOL of the file. On Windows, where typical EOL are CRFL, leaves the files with mixed endings.