ReadString did not skip leading spaces

This commit is contained in:
ceriel 1987-06-11 13:07:27 +00:00
parent a33bd07a3d
commit ee3a80c6e5

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