Apply line-ending fixups.