1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-03-05 16:58:17 +03:00

enhanced output indenting (bug 133264)

* xmlwriter.c: enhanced output indenting (bug 133264)
This commit is contained in:
William M. Brack 2004-02-03 04:20:18 +00:00
parent 93d004f9d8
commit b907905369
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,7 @@
Mon Feb 2 20:22:18 PST 2004 William Brack <wbrack@mmm.com.hk>
* xmlwriter.c: enhanced output indenting (bug 133264)
Mon Feb 2 16:13:33 PST 2004 William Brack <wbrack@mmm.com.hk>
* xmlreader.c, include/libxml/xmlreader.h: applied patch from

View File

@ -868,6 +868,8 @@ xmlTextWriterEndElement(xmlTextWriterPtr writer)
sum += count;
/* fallthrough */
case XML_TEXTWRITER_NAME:
if (writer->indent) /* next element needs indent */
writer->doindent = 1;
count = xmlOutputBufferWriteString(writer->out, "/>");
if (count < 0)
return -1;