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:
parent
973dceb768
commit
02c1f23297
@ -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>
|
Tue Apr 25 22:22:58 CEST 2006 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
* tree.c: fix compilation without tree
|
* tree.c: fix compilation without tree
|
||||||
|
@ -2442,6 +2442,13 @@ xmlTextWriterEndPI(xmlTextWriterPtr writer)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (writer->indent) {
|
||||||
|
count = xmlOutputBufferWriteString(writer->out, "\n");
|
||||||
|
if (count < 0)
|
||||||
|
return -1;
|
||||||
|
sum += count;
|
||||||
|
}
|
||||||
|
|
||||||
xmlListPopFront(writer->nodes);
|
xmlListPopFront(writer->nodes);
|
||||||
return sum;
|
return sum;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user