When rewriting, the ranges which include the "end of line" (so \n on unix) do not handle windows line endings (\r\n): the size of considered to be 1. So, on Windows, the result file contains sequences of \r\r\n as line-endings.
This is not visible when running the test-suite from an svn check-out, because the test files are marked as binary. However, with a git repository on windows, this is quite visible.
Extended Description
When rewriting, the ranges which include the "end of line" (so \n on unix) do not handle windows line endings (\r\n): the size of considered to be 1. So, on Windows, the result file contains sequences of \r\r\n as line-endings.
This is not visible when running the test-suite from an svn check-out, because the test files are marked as binary. However, with a git repository on windows, this is quite visible.