-
-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
yamlfix overly aggressively removes spaces between list items #230
Comments
Hi @andrewimeson thanks for opening the issue. I'm sorry that you don't like the new behaviour, have you tried playing with the Already the configuration of the whitelines is extensive, maybe we can add a new one to disable the whitelines management, but someone would have to do a PR. Can you think of a better solution? |
@lyz-code I tried setting ---
hosts: all
tasks:
- name: Do something
command: |
echo something
- name: Do another thing
command: |-
echo "another thing" |
services:
studio:
container_name: supabase-studio
// THIS SPACE IS ALWAYS REMOVED
kong:
container_name: supabase-kong sequence_style = "block_style"
section_whitelines = 1 Same behavior for me as well |
This should be fixed by @Klavionik contribution #244 and is available since If it's not we can always reopen the issue |
Description
yamlfix has started removing whitespace between list elements that it previously would leave untouched. I think this is a step too far for a default configuration, because a lot of uses and tools use whitespace to separate items in a list.
Steps to reproduce
Given a YAML file like this
Current behavior
Yamlfix removes all empty lines
Desired behavior
Yamlfix should (at least by default) ignore at least one blank line between items in a list.
Environment
The text was updated successfully, but these errors were encountered: