Also coerce diff(1) into working the other way (from no-\n to \n).

Taking out the evil warning fixed it one way, but didn't make the
other way any better, so replace it with printing a single \n.
This commit is contained in:
Brian Feldman 2000-09-15 11:35:16 +00:00
parent 5c83e80d3f
commit 0fbf304b54

View File

@ -483,6 +483,9 @@ print_1_line (line_flag, line)
}
output_1_line (text, limit, flag_format, line_flag);
if ((!line_flag || line_flag[0]) && limit[-1] != '\n')
fputc ('\n', out);
}
/* Output a line from TEXT up to LIMIT. Without -t, output verbatim.