17830: preserve line endings of original file when updating keywords.
This fixes the test failures on Windows from the new tests, and includes test fixes as well as the module fix.
R
R David Murray committed
f0f7ceae3c94df171d94da1055236db1a93d85a9
Parent: 5238092