aboutsummaryrefslogtreecommitdiffstats
path: root/xmlwriter.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2008-01-09 02:19:50 +0000
committerDaniel Veillard <veillard@src.gnome.org>2008-01-09 02:19:50 +0000
commit7e26fb4b109b50ecf6752fe3d6f74d349432fac7 (patch)
treebe8c025e6812b275f9827156d4bed2237eb6cd27 /xmlwriter.c
parent3108ba92b7a7a03bb4f913a59e2bbece6322275a (diff)
downloadandroid_external_libxml2-7e26fb4b109b50ecf6752fe3d6f74d349432fac7.tar.gz
android_external_libxml2-7e26fb4b109b50ecf6752fe3d6f74d349432fac7.tar.bz2
android_external_libxml2-7e26fb4b109b50ecf6752fe3d6f74d349432fac7.zip
fix indentation in xmlTextWriterFullEndElement, as raised by Felipe Pena,
* xmlwriter.c: fix indentation in xmlTextWriterFullEndElement, as raised by Felipe Pena, should fix #508156 Daniel svn path=/trunk/; revision=3668
Diffstat (limited to 'xmlwriter.c')
-rw-r--r--xmlwriter.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/xmlwriter.c b/xmlwriter.c
index 7acae76f..2d9d1090 100644
--- a/xmlwriter.c
+++ b/xmlwriter.c
@@ -1256,6 +1256,11 @@ xmlTextWriterFullEndElement(xmlTextWriterPtr writer)
return -1;
}
+ if (writer->indent) {
+ count = xmlOutputBufferWriteString(writer->out, "\n");
+ sum += count;
+ }
+
xmlListPopFront(writer->nodes);
return sum;
}