This website requires JavaScript.
Explore
Help
Sign In
vitalif
/
prettier
Watch
1
Star
0
Fork
You've already forked prettier
0
Code
Issues
Pull Requests
Releases
Wiki
Activity
66fe2f78fa
prettier
/
tests
/
line-endings
/
jsfmt.spec.js
2 lines
21 B
JavaScript
Raw
Normal View
History
Unescape
Escape
Fix windows line-endings (#177) The search for an empty line incorrectly does +1 which happens to be skipping a `\n`, but in case of windows line endings it skips the `\r` but sees a `\n` afterwards and incorrectly assumes that it is a empty line. This doesn't change the behavior of doing +1 when there's not a line ending. Making it correct actually triggers a bunch of changes, where half of them are better and half of them regressions. So I'm going to send another pull request to fix that case.
2017-01-14 07:07:09 +03:00
run
_spec
(
_
_dirname
)
;