Attempt at spacing out special characters
This commit is contained in:
parent
42fd486a41
commit
7e7e455b03
|
@ -210,6 +210,9 @@ 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--;
|
||||||
}
|
}
|
||||||
|
if(c == '[' || c == ']' || c == '{' || c == '}')
|
||||||
|
*w++ = ' ', *w++ = c, *w++ = ' ';
|
||||||
|
else
|
||||||
*w++ = c;
|
*w++ = c;
|
||||||
}
|
}
|
||||||
while(*(--w) <= ' ') *w = 0;
|
while(*(--w) <= ' ') *w = 0;
|
||||||
|
|
Loading…
Reference in New Issue