marksman: fix a small newline handling bug
authorAlan Cox <alan@linux.intel.com>
Tue, 11 Oct 2016 12:00:01 +0000 (13:00 +0100)
committerAlan Cox <alan@linux.intel.com>
Tue, 11 Oct 2016 12:00:01 +0000 (13:00 +0100)
Applications/util/marksman.c

index 0a0745f..b71d759 100644 (file)
@@ -734,6 +734,7 @@ static void parse_line(char *p)
     case ' ':  /* four spaces: literal copy */
         if (memcmp(p, "    ", 4) == 0) {
             copy_literal(p + 4);
+            newline();         /* Because the source had one we ate */
             return;
         }
         if (memcmp(p, "  ", 2) == 0) {