We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using empty fields in certain contexts won't roundrip.
Here we create a field called "a" with an empty value:
Yaml::Node root; Yaml::Node &node = root["list"].PushBack(); node["a"] = ""; std::stringstream stream; Yaml::Serialize(root, stream); std::cout << stream.str() << std::endl; Yaml::Node roundtrip; stream.seekg(0, std::ios::beg); Yaml::Parse(roundtrip, stream);
This outputs correct yaml, but it won't parse:
list: - a: terminate called after throwing an instance of 'Yaml::ParsingException' what(): Incorrect offset. Line 2:
The text was updated successfully, but these errors were encountered:
Oddly, increasing the size of the field name makes the problem go away.
Here we create a field called "abc" with an empty value:
Yaml::Node root; Yaml::Node &node = root["list"].PushBack(); node["abc"] = ""; std::stringstream stream; Yaml::Serialize(root, stream); std::cout << stream.str() << std::endl; Yaml::Node roundtrip; stream.seekg(0, std::ios::beg); Yaml::Parse(roundtrip, stream);
which outputs:
list: - abc:
Sorry, something went wrong.
No branches or pull requests
Using empty fields in certain contexts won't roundrip.
Here we create a field called "a" with an empty value:
This outputs correct yaml, but it won't parse:
The text was updated successfully, but these errors were encountered: