@@ -683,10 +683,11 @@ handler.setCdataSectionElements(_cdata); if (_version != null) { handler.setVersion(_version); } handler.setIndent(_indent); + if (_indentamount >= 0) handler.setIndentAmount(_indentamount); if (_doctypeSystem != null) { handler.setDoctype(_doctypeSystem, _doctypePublic); } handler.setIsStandalone(_isStandalone);