1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-12-25 23:21:26 +03:00

applied patch from Alfred Mickautsch to flush the output at the end of

* xmlwriter.c: applied patch from Alfred Mickautsch to flush the
  output at the end of document.
Daniel

svn path=/trunk/; revision=3691
This commit is contained in:
Daniel Veillard 2008-02-13 10:17:41 +00:00
parent 851b2d0ee5
commit 3ff24115d2
2 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,8 @@
Wed Feb 13 10:56:38 CET 2008 Daniel Veillard <daniel@veillard.com>
* xmlwriter.c: applied patch from Alfred Mickautsch to flush the
output at the end of document.
Fri Feb 8 11:57:03 CET 2008 Daniel Veillard <daniel@veillard.com>
* doc/examples/examples.xml: regenerated, it was truncated.

View File

@ -626,9 +626,10 @@ xmlTextWriterStartDocument(xmlTextWriterPtr writer, const char *version,
* xmlTextWriterEndDocument:
* @writer: the xmlTextWriterPtr
*
* End an xml document. All open elements are closed
* End an xml document. All open elements are closed, and
* the content is flushed to the output.
*
* Returns the bytes written (may be 0 because of buffering) or -1 in case of error
* Returns the bytes written or -1 in case of error
*/
int
xmlTextWriterEndDocument(xmlTextWriterPtr writer)
@ -702,6 +703,9 @@ xmlTextWriterEndDocument(xmlTextWriterPtr writer)
return -1;
sum += count;
}
sum += xmlTextWriterFlush(writer);
return sum;
}