From 3a254c43fdafb698e600930bc0aa375d39598854 Mon Sep 17 00:00:00 2001 From: ronag Date: Tue, 25 Oct 2011 09:10:34 +0000 Subject: [PATCH] 2.0.2: Fixed problem with comments in xml configuration. Added automatic whitespace trimming of configuration nodes. git-svn-id: https://casparcg.svn.sourceforge.net/svnroot/casparcg/server/branches/2.0.0.2@1452 362d55ac-95cf-4e76-9f9a-cbaa9c17b72d --- common/env.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/env.cpp b/common/env.cpp index 8091596ea..a47ae22fe 100644 --- a/common/env.cpp +++ b/common/env.cpp @@ -56,7 +56,7 @@ void configure(const std::string& filename) { std::string initialPath = boost::filesystem::initial_path().file_string(); - boost::property_tree::read_xml(initialPath + "\\" + filename, pt); + boost::property_tree::read_xml(initialPath + "\\" + filename, pt, boost::property_tree::xml_parser::trim_whitespace | boost::property_tree::xml_parser::no_comments); auto paths = pt.get_child("configuration.paths"); media = widen(paths.get("media-path", initialPath + "\\media\\")); -- 2.39.2