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

[libvirt] [PATCH libvirt-glib 06/15] Ensure that the generated XML is indented in a pretty format



From: "Daniel P. Berrange" <berrange redhat com>

---
 libvirt-gconfig/libvirt-gconfig-object.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libvirt-gconfig/libvirt-gconfig-object.c b/libvirt-gconfig/libvirt-gconfig-object.c
index 03c7d5a..f7b60e2 100644
--- a/libvirt-gconfig/libvirt-gconfig-object.c
+++ b/libvirt-gconfig/libvirt-gconfig-object.c
@@ -264,7 +264,7 @@ gchar *gvir_config_object_to_xml(GVirConfigObject *config)
     if (node == NULL)
         return NULL;
 
-    xmlDocDumpMemory(node->doc, &doc, &size);
+    xmlDocDumpFormatMemory(node->doc, &doc, &size, 1);
 
     output_doc = g_strdup((gchar *)doc);
     xmlFree(doc);
-- 
1.7.6.4


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