commit | 233817437ded7a4a7505bc2cdb01eb7c953472c2 | [log] [tgz] |
---|---|---|
author | Matt Kraai <kraai@debian.org> | Thu May 17 01:02:58 2001 +0000 |
committer | Matt Kraai <kraai@debian.org> | Thu May 17 01:02:58 2001 +0000 |
tree | b49802a74fbc044f1f9d1158bda93fa3806e5b58 | |
parent | bfae2529b8aa7b12b19da2ec7ad00ba717941074 [diff] [blame] |
Always print a newline after a matching substitution.
diff --git a/sed.c b/sed.c index 1c22770..16e8e18 100644 --- a/sed.c +++ b/sed.c
@@ -577,12 +577,7 @@ break; } - /* if there's anything left of the line, print it */ - if (*hackline) - puts(hackline); - /* otherwise, we need to print a newline */ - else - printf("\n"); + puts(hackline); /* cleanup */ free(regmatch);