ReadString did not skip leading spaces
authorceriel <none@none>
Thu, 11 Jun 1987 13:07:27 +0000 (13:07 +0000)
committerceriel <none@none>
Thu, 11 Jun 1987 13:07:27 +0000 (13:07 +0000)
lang/m2/libm2/InOut.mod

index 21d1a9f..dc496ec 100644 (file)
@@ -308,6 +308,10 @@ IMPLEMENTATION MODULE InOut ;
 
   BEGIN
        i := 0;
+       REPEAT
+               Read(ch);
+       UNTIL (ch # ' ') AND (ch # TAB);
+       UnRead(ch);
        LOOP
                Read(ch);
                termCH := ch;