The input routine used to skip space. This "feature" has been removed
because it is also used to read strings, in which space is significant.
This commit is contained in:
parent
fedaa3267a
commit
4d48191bcc
|
@ -232,14 +232,6 @@ input() {
|
|||
nostartline = 0;
|
||||
nonline = 1;
|
||||
}
|
||||
if (c == ' ' || c == '\t') { /*
|
||||
* Deliver space, but only once
|
||||
*/
|
||||
do c = getc(f);
|
||||
while (c == ' ' || c == '\t');
|
||||
ungetc(c,f);
|
||||
return ' ';
|
||||
}
|
||||
if (c == '\n') nonline = 0;
|
||||
return c;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue