mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-05 03:26:53 +00:00
Preserve CRLF if file already ends that way
This commit is contained in:
parent
abd3d0ec3f
commit
2ab5832ce1
2 changed files with 10 additions and 10 deletions
|
|
@ -15,8 +15,8 @@ TESTS = (
|
|||
(b'foo', 1, b'foo\n'),
|
||||
(b'foo\n\n\n', 1, b'foo\n'),
|
||||
(b'\xe2\x98\x83', 1, b'\xe2\x98\x83\n'),
|
||||
(b'foo\r\n', 1, b'foo\n'),
|
||||
(b'foo\r\n\r\n', 1, b'foo\n'),
|
||||
(b'foo\r\n', 0, b'foo\r\n'),
|
||||
(b'foo\r\n\r\n\r\n', 1, b'foo\r\n'),
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue