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.)

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.
Search:
Login: Password:

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