Skip to content

Not stripping whitespace after block scalars in map #917

@rjk9w5

Description

@rjk9w5

Adding this test to specexamples:
const char* exRyan = "key: value\t \t#Comment\n";

Found the value comparison fails:
EXPECT_EQ("value", doc["key"].as<std::string>());

Where the return of as<string> is "value\t"

This should have stripped the white space after value, but it does not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions