]> git.sesse.net Git - casparcg/commitdiff
2.0.2: Fixed problem with comments in xml configuration. Added automatic whitespace...
authorronag <ronag@362d55ac-95cf-4e76-9f9a-cbaa9c17b72d>
Tue, 25 Oct 2011 09:10:34 +0000 (09:10 +0000)
committerronag <ronag@362d55ac-95cf-4e76-9f9a-cbaa9c17b72d>
Tue, 25 Oct 2011 09:10:34 +0000 (09:10 +0000)
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

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