Skip to content

Conversation

@aryasoni98
Copy link

This PR ensures that yam preserves newlines for folded style (>) YAML blocks, rather than joining lines into a single line. This resolves issue #112 and brings yam’s output in line with YAML spec and user expectations.

Copy link
Member

@luhring luhring left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for looking at this! Looks like a nice start.

Can you add some test cases to express the correct behavior we're expecting here, and to ensure that this change is fixing the bug? Check out https://github.com/chainguard-dev/yam/blob/main/pkg/yam/formatted/encoder_test.go to see how we're handling testing for other parts of this file. Thanks again!

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

Successfully merging this pull request may close these issues.

2 participants