Skip to content

feat: Implement preferred line width to YAML builder(#17082) - #17141

Open
LaskaIDK wants to merge 3 commits into
crystal-lang:masterfrom
LaskaIDK:yaml_max_line_width
Open

feat: Implement preferred line width to YAML builder(#17082)#17141
LaskaIDK wants to merge 3 commits into
crystal-lang:masterfrom
LaskaIDK:yaml_max_line_width

Conversation

@LaskaIDK

Copy link
Copy Markdown
Contributor

Implemented yaml_emitter_set_width into the YAML builder + a spec
Closes #17082

@straight-shoota

Copy link
Copy Markdown
Member

I'm wondering if it's a good idea to pile config options directly onto all kinds of YAML serialization methods, or if a dedicated settings object would be better (#17082 (comment)).

I suppose we could still merge this nevertheless, and figure out a concept for the configuration mechanism later. But I'd like to hear other's opinions on this.

@LaskaIDK

LaskaIDK commented Aug 3, 2026

Copy link
Copy Markdown
Contributor Author

I saw the comment, but decided against it since it'd be best for now to not make one without hearing other maintainers on it.
Would be better if we made one, though.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow configuring the YAML emitter line width.

2 participants