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 130513 - wrining with xmlTextWriterSetIndent wrongly adds indent before end elements
wrining with xmlTextWriterSetIndent wrongly adds indent before end elements
Status: RESOLVED FIXED
Product: libxml
Classification: Deprecated
Component: general
unspecified
Other Linux
: Normal minor
: ---
Assigned To: Daniel Veillard
Daniel Veillard
Depends on:
Blocks:
 
 
Reported: 2004-01-04 15:22 UTC by Christian Persch
Modified: 2005-08-15 01:27 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
testcase (974 bytes, text/plain)
2004-01-04 15:22 UTC, Christian Persch
Details

Description Christian Persch 2004-01-04 15:22:03 UTC
I'd have expected xmlTextWriter's output with xmlTextWriterSetIndent to be
the same as the tree api's output with xmlIndentTreeOutput = 1, but that
isn't the case. Consider the output of the attached testcase:

Output of tree api:
<?xml version="1.0"?>
<root>
  <element>TEST</element>
</root>

Output of xmlWriter api:
<?xml version="1.0"?>
<root>
  <element>TEST  </element>
</root>

Note the extra whitespace after "TEST".
Comment 1 Christian Persch 2004-01-04 15:22:41 UTC
Created attachment 22904 [details]
testcase
Comment 2 alexander.winston 2004-01-04 22:34:30 UTC
Marking severity as minor.
Comment 3 Daniel Veillard 2004-01-05 13:31:30 UTC
That should be fixed in CVS now, can you check ?

  thanks,

Daniel
Comment 4 Christian Persch 2004-01-05 13:47:13 UTC
Yes, it works now as expected. Thanks!