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

yamlv2 will enter a new line when my string is too long, how can i cancel this ? #848

Closed
Yelijah opened this issue May 9, 2022 · 2 comments

Comments

@Yelijah
Copy link

Yelijah commented May 9, 2022

yamlv2 will make a new line when my string is too long, how can i cancel newline ? my string actually is command and has some spaces.

@laverya
Copy link
Contributor

laverya commented May 9, 2022

There's a long saga related to this particular issue. Short answer is to update to v3. See #166 and #670 . You can also maintain a fork or use unexported variables via unsafe.

The change to the default line wrapping behavior was made to both v2 and v3, but v2 was rolled back after it broke a lot of kubernetes (and elsewhere) tests.

@Yelijah
Copy link
Author

Yelijah commented May 18, 2022

Thank you for you answer!

@Yelijah Yelijah closed this as completed May 18, 2022
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

2 participants