remove trailing whitespace
This commit is contained in:
@@ -216,7 +216,7 @@ WITH { return kw_WITH; }
|
||||
char *p = buf;
|
||||
int f = 0;
|
||||
int skip_ws = 0;
|
||||
|
||||
|
||||
while((c = input()) != EOF) {
|
||||
if(isspace(c) && skip_ws) {
|
||||
if(c == '\n')
|
||||
@@ -224,7 +224,7 @@ WITH { return kw_WITH; }
|
||||
continue;
|
||||
}
|
||||
skip_ws = 0;
|
||||
|
||||
|
||||
if(c == '"') {
|
||||
if(f) {
|
||||
*p++ = '"';
|
||||
|
Reference in New Issue
Block a user