Skip to content

Flow + Newline + EmptyMap bug #743

@MidoriYakumo

Description

@MidoriYakumo

Add following test case:

TEST_F(EmitterTest, FlowNewlineEmpty)
{
        out << YAML::BeginMap;
        out << YAML::Key << "foo";
        out << YAML::Value << YAML::Flow << YAML::BeginMap << YAML::Newline << YAML::EndMap;
        out << YAML::EndMap;

        ExpectEmit("foo: {\n  }\n");
}

but result is "foo: {\n {}\n"

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