Skip to content

Bug: Superfluous comma in flow style #110

@woodgiraffe

Description

@woodgiraffe

Version: latest

To reproduce:

printf "---\n- {foo: bar}\n\n" | yamlfmt -formatter "include_document_start=true" -formatter "retain_line_breaks=true" -

Actual Input:

---
- {foo: bar}

Actual Output:

---
- {foo: bar,}

Expected Output:

---
- {foo: bar}


Also note that the following works fine:

printf "---\n- {foo: bar}\n" | yamlfmt -formatter "include_document_start=true" -formatter "retain_line_breaks=true" -

Thanks for your work on this!

Metadata

Metadata

Assignees

No one assigned

    Labels

    yaml_v3_problemA bug in the underlying yaml library. These issues are vastly harder to fix.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions