Skip to content
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

linewidth just for strings #647

Open
thernstig opened this issue Nov 22, 2021 · 0 comments
Open

linewidth just for strings #647

thernstig opened this issue Nov 22, 2021 · 0 comments

Comments

@thernstig
Copy link

thernstig commented Nov 22, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant