poptreeitem fix

This commit is contained in:
Jindra Pet��k
2013-04-13 18:25:48 +02:00
parent e9d0900908
commit 116bf760f0
12 changed files with 58 additions and 17 deletions
@@ -48,7 +48,9 @@ public class DoWhileItem extends LoopItem implements Block {
ret += "loop" + loop.id + ":\r\n";
ret += hilight("do\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\nwhile(") + expression.toString(localData) + hilight(");") + "\r\n";
ret += ":loop" + loop.id;