loop mismatch problem fixed, do-while formatting fixed, added some code formatting properties

This commit is contained in:
Honfika
2014-03-28 22:33:39 +01:00
parent 32c4bbd575
commit 5d4517fd00
14 changed files with 88 additions and 15 deletions
@@ -81,7 +81,11 @@ public class IfItem extends GraphTargetItem implements Block {
elseBranch = onTrue;
}
}
writer.append("if(");
writer.append("if");
if (writer.getFormatting().spaceBeforeParenthesesIfParentheses) {
writer.append(" ");
}
writer.append("(");
expr.toString(writer, localData);
writer.append(")").startBlock();
for (GraphTargetItem ti : ifBranch) {