Set all text files to use text=auto for the line endings.