Add a new tool that examines the given text file for line endings, and returns whether they are consistent. Adjust the test suite to test that each test file that is being run has proper line endings. This uncovers issue #2133 to show in the test suite.
Fix issue #2133 with \r\r\n line endings being generated.