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

Long key names result in odd line wrapping behavior when serializing to yaml #13

Open
DeeeeLAN opened this issue Sep 26, 2020 · 0 comments

Comments

@DeeeeLAN
Copy link

DeeeeLAN commented Sep 26, 2020

This might be part of the yaml spec, I am not sure. When I have a long key name it can end up wrapping like so:

- ? Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod 
    tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, 
    quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
  : 

Is there any way to keep that as a single line with standard formatting?

Also, is it possible to select the alternate list format?

Currently, A list will serialize into the format:

attributes:
  - itemA
  - itemB
  - itemC

I would like to be able to have it output in the format:

attributes: [itemA, itemB, itemC]

if possible.

Another weird case:
If my key in python is "3'b000 : 0", in the yaml serial it is '3''b000 : 0':The single quoting seems to be a bit odd to me. I am not sure if this is valid or not.

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