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

Feature: configure block scalar type #624

Open
wscourge opened this issue Mar 20, 2023 · 0 comments
Open

Feature: configure block scalar type #624

wscourge opened this issue Mar 20, 2023 · 0 comments

Comments

@wscourge
Copy link

wscourge commented Mar 20, 2023

I'd like to be able to do the following:

{
  long_string_content: "This is a very long string that I want to display in a literal block in my YAML output"
}.to_yaml(fold: "|")

With acceptable :fold basic values: |, >, and other combinations such as |- or >+.

Inspired by this SO answer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant