fix for the switch/case:

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8018 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2005-12-21 02:06:54 +00:00
commit 37c3c25427

View file

@ -150,8 +150,10 @@ Wrapper_pretty_print(String *str, File *f) {
Putc(c,ts);
empty = 0;
if (!empty) {
if (!label && (Char(ts))[0] != '#') {
for (i = 0; i < level; i++)
int slevel = level;
if (label && (slevel >= indent)) slevel -= indent;
if ((Char(ts))[0] != '#') {
for (i = 0; i < slevel; i++)
Putc(' ',f);
}
Printf(f,"%s",ts);