-
-
Notifications
You must be signed in to change notification settings - Fork 46
Open
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is needed
Description
Description
When files contain block strings, yamlfix will squash white space and change the string.
Current behavior
Given the file:
# original.yml
---
key: |
# This is a value #
# X #
yamlfix original.yml results in:
---
key: |-
# This is a value #
# X #
Desired behavior
Strings in block quotes should remain semantically equivalent, or ideally not be modified at all. As it is, white space is removed.
Environment
------------------------------------------------------------------
yamlfix: 1.9.0
Python: 3.10.6
Platform: Linux-5.15.0-27-generic-x86_64-with-glibc2.35
------------------------------------------------------------------
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is needed