Removed padding of curlies and square brackets

This commit is contained in:
Devine Lu Linvega 2024-04-13 19:28:39 -07:00
parent cbfa3be00d
commit 8ccb19d897
1 changed files with 1 additions and 4 deletions

View File

@ -210,10 +210,7 @@ main(int argc, char **argv)
if(c == ')' && *(w - 1) == ' ') w--;
if(c == ' ' && *(w - 1) == ' ') w--;
}
if(c == '[' || c == ']' || c == '{' || c == '}')
*w++ = ' ', *w++ = c, *w++ = ' ';
else
*w++ = c;
*w++ = c;
}
while(*(--w) <= ' ') *w = 0;
fclose(f);