You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by sa...@apache.org on 2002/06/19 22:01:50 UTC
cvs commit: xml-xalan/java/src/org/apache/xalan/xsltc/compiler Output.java
santiagopg 2002/06/19 13:01:50
Modified: java/src/org/apache/xalan/xsltc/compiler Output.java
Log:
Fixed indentation when output method is HTML.
Revision Changes Path
1.16 +2 -4 xml-xalan/java/src/org/apache/xalan/xsltc/compiler/Output.java
Index: Output.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/compiler/Output.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- Output.java 18 Jun 2002 22:29:27 -0000 1.15
+++ Output.java 19 Jun 2002 20:01:49 -0000 1.16
@@ -236,7 +236,6 @@
}
outputProperties.setProperty(OutputKeys.INDENT, attrib);
}
-
else if (_method != null && _method.equals("html")) {
_indent = true;
}
@@ -259,7 +258,6 @@
if (_mediaType == null) {
_mediaType = "text/html";
}
- _indent = true;
}
else if (_method.equals("text")) {
if (_mediaType == null) {
@@ -346,7 +344,7 @@
}
// Compile code to set output indentation on/off
- if (_indent ) {
+ if (_indent) {
field = cpg.addFieldref(TRANSLET_CLASS, "_indent", "Z");
il.append(DUP);
il.append(new PUSH(cpg, _indent));
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org