Skip to content

How to dump the formats Fold (>) or Block (|) using the pyyaml  #693

Open
@krishna3008

Description

@krishna3008

Hi,

I have a YAML syntax where I want to use the fold (>) property of the YAML in the original
I want to dump the same character (with the fold block of the set) using the library, is this possible?

EG:-
groups: >-
{
'{{PREFIX }}-sys':[
'read',
'write',
'annotate',
'distribute'
]
}

Also the format as
PREFIX: "{{ project_config.PROJECT_ACRONYM }}-
{{ project_config.PROJECT_CUSTOMER }}-
{{ project_config.PROJECT_ID }}"

Is it possible to dump the YAML with the format intact (or) can any arguments added to get this format

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