xmlwriter.c: fix indenting in xmlTextWriterFullEndElement for bug# 554353.
svn path=/trunk/; revision=3805
diff --git a/ChangeLog b/ChangeLog
index 1340fa8..7ba1702 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Sun Dec 27 14:16:13 CET 2008 Rob Richards <rrichards@cdatazone.org>
+
+ * xmlwriter.c: fix indenting in xmlTextWriterFullEndElement for
+ bug# 554353.
+
Thu Nov 27 16:24:52 CET 2008 Daniel Veillard <daniel@veillard.com>
* include/libxml/tree.h tree.c python/generator.py: adds
diff --git a/xmlwriter.c b/xmlwriter.c
index 69d4b85..b88de3a 100644
--- a/xmlwriter.c
+++ b/xmlwriter.c
@@ -1240,8 +1240,16 @@
if (count < 0)
return -1;
sum += count;
+ if (writer->indent)
+ writer->doindent = 0;
/* fallthrough */
case XML_TEXTWRITER_TEXT:
+ if ((writer->indent) && (writer->doindent)) {
+ count = xmlTextWriterWriteIndent(writer);
+ sum += count;
+ writer->doindent = 1;
+ } else
+ writer->doindent = 1;
count = xmlOutputBufferWriteString(writer->out, "</");
if (count < 0)
return -1;