Link: quoting strings and breaking strings across multiple lines in YAML

August 28, 2023

This StackOverflow answer (alternate link) is an excellent, readable, all in one place answer to the twin questions of how you quote strings in YAML and how you break them across multiple lines. I learned something new about quoting strings from reading it, and I'm definitely going to want this link for future reference the next time I have something complicated to put in YAML. I'm also probably going to use '...' quoting more now that I know how simple it is to quote any stray 's I want in it.

(Via Laurence Tratt.)


Comments on this page:

By Albert at 2023-08-28 10:34:05:

I think most of that is covered concisely and conveniently at https://yaml-multiline.info/

Written on 28 August 2023.
« YAML is an okay enough configuration file format
Go 1.22's (likely) new reflect.TypeFor() generic function »

Page tools: View Source, View Normal, Add Comment.
Search:
Login: Password:
Atom Syndication: Recent Comments.

Last modified: Mon Aug 28 10:18:51 2023
This dinky wiki is brought to you by the Insane Hackers Guild, Python sub-branch.