Attempt at spacing out special characters
This commit is contained in:
parent
42fd486a41
commit
7e7e455b03
|
@ -210,7 +210,10 @@ main(int argc, char **argv)
|
||||||
if(c == ')' && *(w - 1) == ' ') w--;
|
if(c == ')' && *(w - 1) == ' ') w--;
|
||||||
if(c == ' ' && *(w - 1) == ' ') w--;
|
if(c == ' ' && *(w - 1) == ' ') w--;
|
||||||
}
|
}
|
||||||
*w++ = c;
|
if(c == '[' || c == ']' || c == '{' || c == '}')
|
||||||
|
*w++ = ' ', *w++ = c, *w++ = ' ';
|
||||||
|
else
|
||||||
|
*w++ = c;
|
||||||
}
|
}
|
||||||
while(*(--w) <= ' ') *w = 0;
|
while(*(--w) <= ' ') *w = 0;
|
||||||
fclose(f);
|
fclose(f);
|
||||||
|
|
Loading…
Reference in New Issue