commit | 02c1f23297ad794a9c83e408e477167b32b71e30 | [log] [tgz] |
---|---|---|
author | Daniel Veillard <veillard@src.gnome.org> | Thu Apr 27 08:10:25 2006 +0000 |
committer | Daniel Veillard <veillard@src.gnome.org> | Thu Apr 27 08:10:25 2006 +0000 |
tree | 5386a2485a5e7f9eee4ee8a6c3c61a28192362d0 | |
parent | 973dceb7688b3afa48c865593f772a9a3e29f8ca [diff] [blame] |
patch from Jason Viers for line breaks after EndPI Daniel * xmlwriter.c: patch from Jason Viers for line breaks after EndPI Daniel
diff --git a/xmlwriter.c b/xmlwriter.c index 37b7945..43934b3 100644 --- a/xmlwriter.c +++ b/xmlwriter.c
@@ -2442,6 +2442,13 @@ return -1; } + if (writer->indent) { + count = xmlOutputBufferWriteString(writer->out, "\n"); + if (count < 0) + return -1; + sum += count; + } + xmlListPopFront(writer->nodes); return sum; }