More text diff minimization: preserve trailing line whitespace

EOLs are still converted to standard UNIX-style LF (rather than CRLF,
the technical Windows-style but also not the native CKII style).