Skip to content

how to avoid change the style of multi level list?Β #291

@peczenyj

Description

@peczenyj

Question

I am using env variable YAMLFIX_SEQUENCE_STYLE as "keep_style" and I have a yaml file like this

---
foo:
  -
    - bar:

after running yamlfix I got this

---
foo:
  -   - bar:

what is unexpected since I am specifying to not change the style. How can I avoid it?
and if I run yamllint I got this:

$ yamllint a.yaml 
a.yaml
  3:6       error    too many spaces after hyphen  (hyphens)

version used:

$ yamlfix --version
------------------------------------------------------------------
     yamlfix: 1.17.0
     Python: 3.12.3
     Platform: Linux-6.8.0-48-generic-x86_64-with-glibc2.39
------------------------------------------------------------------

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions