yamlfix
yamlfix copied to clipboard
how to avoid change the style of multi level list?
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
------------------------------------------------------------------