Skip to content

Preserve formatting of YAML files #864

@tuukkamustonen

Description

@tuukkamustonen

Encrypting and decrypting:

array: [element1, element2]

Turns into:

array:
    - elemenet1
    - element2

Also, trailing comments seem to be moved above the line:

field: value  # trailing comment
# trailing comment
field: value

And empty linefeeds are lost:

field: value

field2: value
field: value
field2: value

I would assume there are other examples, too.

Would it be possible to preserve more of the original file's formatting?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions