diff.c: move line ending check into emit_hunk_header