Skip to content

Commit 68d4e94

Browse files
committed
Respect indentation when printing DoLoop statements
1 parent 06e155e commit 68d4e94

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/org/mozilla/javascript/ast/DoLoop.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ public void setWhilePosition(int whilePosition) {
100100
@Override
101101
public String toSource(int depth) {
102102
StringBuilder sb = new StringBuilder();
103+
sb.append(makeIndent(depth));
103104
sb.append("do ");
104105
sb.append(body.toSource(depth).trim());
105106
sb.append(" while (");

0 commit comments

Comments
 (0)