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

Prevent yaml.Marshal from wrapping long lines #154

Closed
wants to merge 1 commit into from

Conversation

elboulangero
Copy link
Contributor

Line wrapping after 80 characters was the default in yaml.v2. No line wrapping is the default for yaml.v3. The helper FutureLineWrap() is meant to help users do the transition to the new behavior.

For mirrorbits, line wrapping manifests itselfs for the show and edit commands. It's an issue, in the sense that it makes it difficult for scripts to interact with those commands (as long values might spread on several lines, so a simple grep won't do).

Hence this commit disables line wrapping.

Closes: #153

Line wrapping after 80 characters was the default in yaml.v2. No line
wrapping is the default for yaml.v3. The helper FutureLineWrap() is
meant to help users do the transition to the new behavior.

For mirrorbits, line wrapping manifests itselfs for the `show` and
`edit` commands. It's an issue, in the sense that it makes it difficult
for scripts to interact with those commands (as long values might spread
on several lines, so a simple grep won't do).

Hence this commit disables line wrapping.

Closes: etix#153
@elboulangero
Copy link
Contributor Author

Closing, as the issue was solved via #163 instead

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.

Line-wrapping in YAML output makes life difficult
1 participant