After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 135204 - SAX push parser ignores linebreaks in CDATA for line count
SAX push parser ignores linebreaks in CDATA for line count
Status: VERIFIED FIXED
Product: libxml2
Classification: Platform
Component: general
git master
Other All
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2004-02-23 13:30 UTC by Rob Richards
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Rob Richards 2004-02-23 13:30:02 UTC
Line breaks in a CDATA section when using a push parser do not increment 
line count. A patch which seems to correct this can be found at 
http://mail.gnome.org/archives/xml/2003-December/msg00170.html

Using the following data, I was able to reproduce this with testSAX. I 
added the line numbers within the Debug callbacks. Run normally, the line 
numbers were correct. When ran with --push, the line numbers were wrong 
as the linebreaks within the CDATA were ignored.

<?xml version="1.0"?>
<data>
<![CDATA[
multi
line 
CDATA
block
]]>
<data>

With the patch the difference I see is that using push parser, the line 
count is not incremented until after the cdata callback, while it seems 
to be incremeneted before the callback otherwise.
Comment 1 Daniel Veillard 2004-03-27 00:55:55 UTC
Dave Beckett provided a patch which seems to fix this, and is commited
into CVS,

  thanks,

Daniel
Comment 2 Daniel Veillard 2004-04-18 23:58:51 UTC
  This should be closed by release 2.6.9,
                                                                                
   thanks,
                                                                                
Daniel