-
-
Notifications
You must be signed in to change notification settings - Fork 114
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
Array whitespace is changed between parse and stringify #570
Comments
It's retained in the document that you get from |
Oh, that makes sense. Let me see if I can use |
I haven't fully confirmed because I am still revamping my other logics, but it looks like the "After" version is adding spaces though. on: [ pull_request ] |
Yup, I can confirm that the spaces choice between in the square brackets in array is not being preserved. |
Normalising whitespace is done intentionally; information about it is not retained in the parsed document. |
In that case,
|
|
Closing, as there's nothing actionable here and the current behaviour is intentional. |
Describe the bug
When I am parsing a YAML and stringifying it afterward, the whitespace in an array changes.
To Reproduce
Before:
After:
Expected behaviour
The after file should be the same as before
Versions (please complete the following information):
node
: 22yaml
: 2.5.0The text was updated successfully, but these errors were encountered: