diff --git a/src/modal.c b/src/modal.c index bb71d33..c763ae4 100644 --- a/src/modal.c +++ b/src/modal.c @@ -210,7 +210,10 @@ main(int argc, char **argv) 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; fclose(f);