From 07a67fa4bcc1b8bf2651ab41e5fc54a05059cf7e Mon Sep 17 00:00:00 2001 From: Mike Hommey Date: Sat, 29 Apr 2006 21:57:40 +0200 Subject: Load /tmp/libxml2-2.6.24 into libxml2/branches/upstream/current. --- xmlwriter.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'xmlwriter.c') diff --git a/xmlwriter.c b/xmlwriter.c index 37b7945..43934b3 100644 --- a/xmlwriter.c +++ b/xmlwriter.c @@ -2442,6 +2442,13 @@ xmlTextWriterEndPI(xmlTextWriterPtr writer) return -1; } + if (writer->indent) { + count = xmlOutputBufferWriteString(writer->out, "\n"); + if (count < 0) + return -1; + sum += count; + } + xmlListPopFront(writer->nodes); return sum; } -- cgit v1.2.3