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

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

 



From: "Daniel P. Berrange" <berrange@xxxxxxxxxx>

---
 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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]