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);