AmendHub

Download:

jcs

/

amend

/

amendments

/

140

diffreg: Remove hack appending a newline for newline-less files

This made our diffs look nicer but it breaks patch's ability to
reconstruct some diffs, so it must go.

jcs made amendment 140 over 2 years ago
--- diffreg.c Thu Mar 7 17:27:58 2024 +++ diffreg.c Mon Mar 18 08:47:50 2024 @@ -1092,16 +1092,10 @@ fetch(long *f, int a, int b, FILE *lb, int ch, int old diff_format == D_NREVERSE) warnx("No newline at end of file"); else -#if 0 diff_output("\r\\ No newline at end of " "file\r"); -#else - diff_output("\r"); -#endif return (0); } - if (c == '\n') - c = '\n'; if (c == '\t' && (flags & D_EXPANDTABS)) { do { diff_output(" ");