]> andersk Git - moira.git/commitdiff
when reading a script, preserve blank lines
authormar <mar>
Fri, 22 Jan 1988 12:26:13 +0000 (12:26 +0000)
committermar <mar>
Fri, 22 Jan 1988 12:26:13 +0000 (12:26 +0000)
clients/mrtest/mrtest.c

index 1699444ca2c1e2e36e1ff0c61266978c603abb05..dbfabe17d70e090f52d326aeb0257ecc22cb5868 100644 (file)
@@ -5,19 +5,6 @@
  *
  *     Copyright (C) 1987 by the Massachusetts Institute of Technology
  *
- *     $Log$
- *     Revision 1.4  1988-01-21 17:57:51  mar
- *     added capability to read from a script file, and put output in another file
- *
- * Revision 1.3  88/01/07  17:42:06  mar
- * print "tuple" or "tuples" as is correct
- * 
- * Revision 1.2  87/08/22  23:45:10  wesommer
- * Removed extra RCS headers.
- * 
- * Revision 1.1  87/08/22  18:31:59  wesommer
- * Initial revision
- * 
  */
 
 #ifndef lint
@@ -142,8 +129,10 @@ char *argv[];
          break;
        if ((cp = index(input, '\n')) != (char *)NULL)
          *cp = 0;
-       if (input[0] == 0)
-         continue;
+       if (input[0] == 0) {
+           printf("\n");
+           continue;
+       }
        if (input[0] == '%') {
            for (cp = &input[1]; *cp && isspace(*cp); cp++);
            printf("Comment: %s\n", cp);
This page took 0.043446 seconds and 5 git commands to generate.