gareth 2003/11/24 03:10:59
Modified: c/src/xercesc/dom/impl DOMWriterImpl.cpp
Log:
Fix for bug 22917. Patch by Adam Heinz .
Revision Changes Path
1.44 +6 -3 xml-xerces/c/src/xercesc/dom/impl/DOMWriterImpl.cpp
Index: DOMWriterImpl.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/xercesc/dom/impl/DOMWriterImpl.cpp,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -r1.43 -r1.44
--- DOMWriterImpl.cpp 10 Nov 2003 17:52:58 -0000 1.43
+++ DOMWriterImpl.cpp 24 Nov 2003 11:10:58 -0000 1.44
@@ -57,6 +57,9 @@
/*
* $Id$
* $Log$
+ * Revision 1.44 2003/11/24 11:10:58 gareth
+ * Fix for bug 22917. Patch by Adam Heinz .
+ *
* Revision 1.43 2003/11/10 17:52:58 amassari
* Fixed memory leak
*
@@ -833,8 +836,8 @@
if (checkFilter(nodeToWrite) != DOMNodeFilter::FILTER_ACCEPT)
break;
- //skip ws if pretty print
- if (getFeature(FORMAT_PRETTY_PRINT_ID))
+ // Pretty-print skips whitespace-only text nodes unless
whitespace-in-element is set.
+ if (getFeature(FORMAT_PRETTY_PRINT_ID) &&
!getFeature(WHITESPACE_IN_ELEMENT_CONTENT_ID))
{
if(XMLString::isAllWhiteSpace(nodeValue))
break;
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]