Translate line endings before comparing file contents

This is for #5601 Windows (and maybe Linux) only.

Also fixed some text style sheets.