From 2635a01460b4b86746a1ea1caea5527c253cd3fd Mon Sep 17 00:00:00 2001 From: Jonathan Rajotte Date: Thu, 23 Jun 2016 17:10:08 -0400 Subject: [PATCH 1/1] Disable blank element parsing on get_document This make sure that when dumping a raw element no blank elements are present. --- src/common/config/session-config.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/common/config/session-config.c b/src/common/config/session-config.c index 7ce2b0130..fc164fb1d 100644 --- a/src/common/config/session-config.c +++ b/src/common/config/session-config.c @@ -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."); -- 2.34.1