libxml2 r3668 - trunk



Author: veillard
Date: Wed Jan  9 02:19:50 2008
New Revision: 3668
URL: http://svn.gnome.org/viewvc/libxml2?rev=3668&view=rev

Log:
* xmlwriter.c: fix indentation in xmlTextWriterFullEndElement,
  as raised by Felipe Pena, should fix #508156
Daniel


Modified:
   trunk/ChangeLog
   trunk/xmlwriter.c

Modified: trunk/xmlwriter.c
==============================================================================
--- trunk/xmlwriter.c	(original)
+++ trunk/xmlwriter.c	Wed Jan  9 02:19:50 2008
@@ -1256,6 +1256,11 @@
             return -1;
     }
 
+    if (writer->indent) {
+        count = xmlOutputBufferWriteString(writer->out, "\n");
+        sum += count;
+    }
+
     xmlListPopFront(writer->nodes);
     return sum;
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]