minchau 2003/06/12 15:23:50
Modified: java/src/org/apache/xml/serializer ToStream.java
Log:
Made ToStream.characters(char[], int, int) not bail out early if
the length was 0 characters, but do all processing. This forces
the close of any open start tag.
Submitted by: Brian Minchau
Revision Changes Path
1.12 +0 -17
xml-xalan/java/src/org/apache/xml/serializer/ToStream.java
Index: ToStream.java
===================================================================
RCS file:
/home/cvs/xml-xalan/java/src/org/apache/xml/serializer/ToStream.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- ToStream.java 9 Jun 2003 21:50:56 -0000 1.11
+++ ToStream.java 12 Jun 2003 22:23:49 -0000 1.12
@@ -879,14 +879,6 @@
throws SAXException
{
}
-
- static boolean isWhitespace(char ch)
- {
- if (ch == 0x20 || ch == 0x0A || ch == 0x0D || ch == 0x09 )
- return true;
- else
- return false;
- }
/**
* Tell if this character can be written without escaping.
@@ -1384,15 +1376,6 @@
public void characters(final char chars[], final int start, final int
length)
throws org.xml.sax.SAXException
{
- if (0 == length)
- {
- // Even though the character string is empty, but it is still a
character event
- // time to fire off characters generation event
- if (m_tracer != null)
- super.fireCharEvent(chars, start, length);
- return;
- }
-
if (m_startTagOpen)
{
closeStartTag();
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]