Author: veillard
Date: Wed Feb 13 10:17:41 2008
New Revision: 3691
URL: http://svn.gnome.org/viewvc/libxml2?rev=3691&view=rev

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


Modified:
   trunk/ChangeLog
   trunk/xmlwriter.c

Modified: trunk/xmlwriter.c
==============================================================================
--- trunk/xmlwriter.c   (original)
+++ trunk/xmlwriter.c   Wed Feb 13 10:17:41 2008
@@ -626,9 +626,10 @@
  * 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 @@
             return -1;
         sum += count;
     }
+
+    sum += xmlTextWriterFlush(writer);
+
     return sum;
 }
 
_______________________________________________
SVN-commits-list mailing list (read only)
http://mail.gnome.org/mailman/listinfo/svn-commits-list

Want to limit the commits to a few modules? Go to above URL, log in to edit 
your options and select the modules ('topics') you want.
Module maintainer? It is possible to set the reply-to to your development 
mailing list. Email [EMAIL PROTECTED] if interested.

Reply via email to