[xml] xmlWriter: line breaks after EndPI when indenting



Is there any reason that xmlWriterEndPI doesn't put a line break on the end if it's indenting?

If not, here's a patch for it.

Jason

--- xmlwriter.c.orig    2006-04-13 16:45:18.000000000 -0500
+++ xmlwriter.c 2006-04-13 16:46:47.000000000 -0500
@@ -2442,6 +2442,13 @@
             return -1;
     }
 
+    if (writer->indent) {
+        count = xmlOutputBufferWriteString(writer->out, "\n");
+       if (count < 0)
+               return -1;
+        sum += count;
+    }
+
     xmlListPopFront(writer->nodes);
     return sum;
 }


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