-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
v3: dumps indenting not coherent with v2 #647
Comments
I've also seen this break unit tests. |
Yes, in v3 we've fixed the indentation so that each level is coherently aligned across all elements and nesting levels. Note in your example how the second output is perfectly aligned according to its depth, while the first is not. Tests expecting an exact format will indeed break. That's why this was done between v2 and v3 and not inside the release. |
Given how low level this lib is, this looks like a major breaking change for many people. If you really insist on having it in place, maybe it'd make sense to have it as part of v4? Do you think you could re-consider this change as part of v3? 🙏 For example, |
The way v3 indents dumps by default is different from v2 and I think it shouldn't be:
I know it won't matter but I personally prefer the looks of the first dump.
Also I've seen this change break tests that rely on yaml string equality.
The text was updated successfully, but these errors were encountered: