Skip to content

linewidth just for strings #647

Description

@thernstig

Hi!

I want my strings to get the output of this format:

    # What I get
    abcde_abcdefgh_abcdef: Foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo fo
    # What I want
    abcde_abcdefgh_abcdef: Foo foo foo foo foo foo foo foo foo foo foo foo foo
      foo foo fo

I have tried this in all possible ways, but without succeeding and wonder if this is possible. The reason for this is that we have a YAML file read and dumped by both this library, as well as PyYAML in Python (https://pyyaml.org/) but end up with different formatting for strings like above, since PyYAML moves long strings to new multi-lines rows.

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