poptreeitem fix

This commit is contained in:
Jindra Petk
2013-04-13 18:25:48 +02:00
parent e9d0900908
commit 116bf760f0
12 changed files with 58 additions and 17 deletions

View File

@@ -43,7 +43,9 @@ public class WhileItem extends LoopItem implements Block {
ret += "loop" + loop.id + ":\r\n";
ret += hilight("while(") + (expression == null ? "null" : expression.toString(localData)) + hilight(")") + "\r\n{\r\n";
for (GraphTargetItem ti : commands) {
ret += ti.toStringSemicoloned(localData) + "\r\n";
if (!ti.isEmpty()) {
ret += ti.toStringSemicoloned(localData) + "\r\n";
}
}
ret += hilight("}") + "\r\n";
ret += ":loop" + loop.id;