Closed sztosz closed 8 years ago
Thank you @sztosz. @Rakoth any thoughts on this?
A test would be nice (example in slim-rb https://github.com/slim-template/slim/blob/94aa6274e51daa504e87ef193ca464548ced5004/test/core/test_encoding.rb#L4)
I added test.
@doomspork lgtm
Thank you @sztosz and @Rakoth 👍
PR for issue #107
Remove all carriage return characters from parsed document to matanin compatibility with editors working under Windows operating system. For Windows CRLF is default line ending, and simplest way to handle that is to simply remove all CR characters by using regex. If document has only LF line endings then
convert_crlf_to_lf
will simply return original document, because nothing is going to be replaced.