Skip to content
New issue

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

Trailing whitespace fails to parse #475

Open
Delian0 opened this issue Oct 21, 2024 · 0 comments
Open

Trailing whitespace fails to parse #475

Delian0 opened this issue Oct 21, 2024 · 0 comments

Comments

@Delian0
Copy link

Delian0 commented Oct 21, 2024

std::string line1 = "test:\n";
std::string line2 = "- {a: 1}\n";
std::string line3 = "- {b: 2} \n"; //fails
std::string line4 = "- [0, {c: 3}] \n"; //also fails
std::string yaml = line1 + line2 + line3 + line4;
ryml::Tree tree = ryml::parse_in_arena(ryml::to_csubstr(yaml));

When a flow-style line contains trailing spaces, parsing fails.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant