You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by mi...@apache.org on 2005/04/07 05:47:14 UTC
cvs commit: xml-xalan/java/src/org/apache/xml/serializer CharInfo.java
minchau 2005/04/06 20:47:14
Modified: java/src/org/apache/xml/serializer CharInfo.java
Log:
Commiting patch for XALANJ-2095, that tabs in text nodes in XML documents
are serialized to 	 but should stay as a tab character.
Revision Changes Path
1.19 +10 -10 xml-xalan/java/src/org/apache/xml/serializer/CharInfo.java
Index: CharInfo.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/src/org/apache/xml/serializer/CharInfo.java,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- CharInfo.java 10 Mar 2005 15:25:02 -0000 1.18
+++ CharInfo.java 7 Apr 2005 03:47:14 -0000 1.19
@@ -320,6 +320,14 @@
isSpecialTextASCII[ch] = true;
}
+
+
+ onlyQuotAmpLtGt = noExtraEntities;
+
+ // initialize the array with a cache of the BitSet values
+ for (int i=0; i<ASCII_MAX; i++)
+ isSpecialAttrASCII[i] = get(i);
+
/* Now that we've used get(ch) just above to initialize the
* two arrays we will change by adding a tab to the set of
* special chars for XML (but not HTML!).
@@ -331,16 +339,8 @@
*/
if (Method.XML.equals(method))
{
- set(S_HORIZONAL_TAB);
+ isSpecialAttrASCII[S_HORIZONAL_TAB] = true;
}
-
-
- onlyQuotAmpLtGt = noExtraEntities;
-
- // initialize the array with a cache of the BitSet values
- for (int i=0; i<ASCII_MAX; i++)
- isSpecialAttrASCII[i] = get(i);
-
}
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org