/rhino/xmlimplsrc/org/mozilla/javascript/xmlimpl/XmlProcessor.java
if ( prettyIndent == 1) indentChildren = true;
if ( i == 1 ) indentChildren = true;
s.append(' '); } String beforeContent = s.toString(); ArrayList<Node> toIndent = new ArrayList<Node>(); boolean indentChildren = false; for (int i = 0; i < e.getChildNodes().getLength(); i++) { <extra_id_0> if (e.getChildNodes().item(i) instanceof Text) { toIndent.add(e.getChildNodes().item(i)); } else { indentChildren = true; toIndent.add(e.getChildNodes().item(i)); }