Fixed discrepancy between YAML generator output and parser's expected input.

This commit is contained in:
WrinklyNinja
2013-07-31 18:17:10 +01:00
parent 2cde0c2c5c
commit b3a562a60d
2 changed files with 2 additions and 5 deletions
+1 -4
View File
@@ -588,10 +588,7 @@ namespace YAML {
else
out << Key << "type" << Value << "error";
if (rhs.Content().size() == 1)
out << Key << "content" << Value << rhs.Content().front();
else
out << Key << "content" << Value << rhs.Content();
out << Key << "content" << Value << rhs.Content();
if (!rhs.Condition().empty())
out << Key << "condition" << Value << rhs.Condition();
+1 -1
View File
@@ -298,7 +298,7 @@ try {
<< YAML::Key << "plugins" << YAML::Value << plugins
<< YAML::EndMap;
boss::ofstream out("foo.txt");
boss::ofstream out(_game.MasterlistPath());
out << yout.c_str();
out.close();