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:
parent
93d004f9d8
commit
b907905369
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user