Should maintain LF line endings for output files on Windows if input source files had LF line endings
Currently indent will always output with
LF
line endings even if the source file hasCRLF
line endings.
Update: this is not actually the issue. The problem on Windows is that indent outputs files in 'text mode', which means that on Windows it will always output files with CRLF
endings even if the input file had LF
endings.
That's fine on Linux/*nix, but not great on Windows, where git might automatically convert to
CRLF
when checking out files.This is a usability issue for Windows devs because
git diff
will show 'everything has changed' by default in that case (I know you can pass-b -w
but that's beside the point).
gst-indent-1.0
should maintain the input line ending scheme or write to a temp file and then fix it up in a second round before writing out the result to the final destination.