[xml] xmlWriter: line breaks after EndPI when indenting
- From: Jason Viers <bean beanalby net>
- To: xml gnome org
- Subject: [xml] xmlWriter: line breaks after EndPI when indenting
- Date: Thu, 13 Apr 2006 17:04:06 -0400
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]