Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.2.2

Bug #629 \n stripped from CDATA content.
Submitted: 2004-01-27 10:07 UTC
From: alan_k Assigned: schst
Status: Closed Package: XML_Beautifier
PHP Version: 4.3.4 OS: linux
Roadmaps: (Not assigned)    
Subscription  


 [2004-01-27 10:07 UTC] alan_k
Description: ------------ function cdataHandler($parser, $cdata) { /** * remove whitespace */ $cdata = trim($cdata); it would be best to remove this if possible (or make it optional) Reproduce code: --------------- parse: <somedata> a b c d e f </somedata> Expected result: ---------------- <somedata> a b c d e f </somedata> Actual result: -------------- <somedata> a b c d e f </somedata>

Comments

 [2004-02-01 21:41 UTC] schst
Thank you for your bug report. This issue has already been fixed in the latest released version of the package, which you can download at http://pear.php.net/packages.php Has been fixed in release 1.1 New option: removeLineBreaks can be set to false