Open ezh opened 1 year ago
Hi @ezh thanks for opening an issue.
Do you have retain_line_breaks
set with this example? See the docs to see how to set that.
$ cat $HOME/.config/yamlfmt/.yamlfmt
formatter:
type: basic
retain_line_breaks: true
scan_folded_as_literal: true
@braydonk You can reproduce it quickly. Copy'n'paste the above YAML to test.yml and run
yamlfmt -conf ~/.config/yamlfmt/.yamlfmt test.yml
with retain_line_breaks
.
yamlfmt -version 0.10.0
Hey. I have the next yaml.
What is the best way to preserve multiline for the
regex
value?I cannot use
>
scan_folded_as_literal
because there will be spaces between elements.