]> git.sesse.net Git - casparcg/blobdiff - common/env.cpp
2.0.2: Fixed problem with comments in xml configuration. Added automatic whitespace...
[casparcg] / common / env.cpp
index 8091596eaeaa3e3d6c60d3e7b5aab43c9338a135..a47ae22fe0eaf04a995f677b0eff8a8228a70f8c 100644 (file)
@@ -56,7 +56,7 @@ void configure(const std::string& filename)
        {\r
                std::string initialPath = boost::filesystem::initial_path().file_string();\r
        \r
-               boost::property_tree::read_xml(initialPath + "\\" + filename, pt);\r
+               boost::property_tree::read_xml(initialPath + "\\" + filename, pt, boost::property_tree::xml_parser::trim_whitespace | boost::property_tree::xml_parser::no_comments);\r
 \r
                auto paths = pt.get_child("configuration.paths");\r
                media = widen(paths.get("media-path", initialPath + "\\media\\"));\r