From: <pat...@us...> - 2010-04-14 13:25:17
|
Revision: 653 http://xml-cppdom.svn.sourceforge.net/xml-cppdom/?rev=653&view=rev Author: patrickh Date: 2010-04-14 13:25:08 +0000 (Wed, 14 Apr 2010) Log Message: ----------- Merged r652 from the trunk: Preserve newlines in CDATA. Submitted by: Carsten Neumann Modified Paths: -------------- branches/1.0/cppdom/xmltokenizer.cpp Modified: branches/1.0/cppdom/xmltokenizer.cpp =================================================================== --- branches/1.0/cppdom/xmltokenizer.cpp 2010-04-14 13:22:25 UTC (rev 652) +++ branches/1.0/cppdom/xmltokenizer.cpp 2010-04-14 13:25:08 UTC (rev 653) @@ -284,12 +284,8 @@ // a newline char? if (isNewLine(c) ) { - if (mCdataMode && generic.length() != 0) + if (!mCdataMode || generic.length() == 0) { - c = ' '; - } - else - { continue; } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |