Disable blank element parsing on get_document
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Thu, 23 Jun 2016 21:10:08 +0000 (17:10 -0400)
committerJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Mon, 11 Jul 2016 15:20:33 +0000 (11:20 -0400)
This make sure that when dumping a raw element no blank elements are present.

src/common/config/session-config.c

index 7ce2b0130289375ed5438b3541cf6fc34e100d1f..fc164fb1dc7af94980c7f209cb3883b70206f28d 100644 (file)
@@ -3236,6 +3236,11 @@ struct config_document *config_document_get(const char *path)
                goto end;
        }
 
+       /*
+        * Do not care of blanks and also make sure that direct dump have no
+        * indentations in them
+        */
+       xmlKeepBlanksDefault(0);
        document->document = xmlParseFile(path);
        if (!document->document) {
                ERR("Configuration document parsing failed.");
This page took 0.027144 seconds and 5 git commands to generate.