1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-26 20:25:14 +03:00

patch from Jason Viers for line breaks after EndPI Daniel

* xmlwriter.c: patch from Jason Viers for line breaks after EndPI
Daniel
This commit is contained in:
Daniel Veillard 2006-04-27 08:10:25 +00:00
parent 973dceb768
commit 02c1f23297
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,7 @@
Thu Apr 27 10:10:58 CEST 2006 Daniel Veillard <daniel@veillard.com>
* xmlwriter.c: patch from Jason Viers for line breaks after EndPI
Tue Apr 25 22:22:58 CEST 2006 Daniel Veillard <daniel@veillard.com>
* tree.c: fix compilation without tree

View File

@ -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;
}