You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When yaml include | mark for multiline assignment, the line number is not correctly
Example Code
ryml::Parser parser;
ryml::Tree tree = parser.parse_in_arena("source.yml", R"(Body:
- Id: 1
Name: Apple
Script: |
Line One
Line Two
- Id: 2
Name: Cat
Script: |
Line One
Line Two
- Id: 3
Name: Dog
Script: |
Line One
Line Two)");
ryml::Location loc = parser.location(tree.rootref());
loc = parser.location(tree["Body"][2]["Name"]);
sprintf("loc.line = %d\n", loc.line + 1);