This content originally appeared on Stefan Judis Web Development and was authored by Stefan Judis
I use YAML sparingly, but occasionally I have to fiddle with GitHub actions that use it as their configuration format. After defining some CI/CD commands, I started looking into multi-line strings, and oh boy...
Multiline strings are annoying in any configuration format, but YAML reaches another level. There are nine (!) different ways to handle strings:
, '
, "
, |
, |+
, |-
, >
, >+
and >-
. Nine! 🤯
Check the YAML Playground or this StackOverflow answer. Big kudos to the person taking the time to write a novel describing string handling. 🙇‍♂️
Reply to Stefan
This content originally appeared on Stefan Judis Web Development and was authored by Stefan Judis

Stefan Judis | Sciencx (2023-03-07T23:00:00+00:00) YAML provides 9 ways to handle strings (#tilPost). Retrieved from https://www.scien.cx/2023/03/07/yaml-provides-9-ways-to-handle-strings-tilpost/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.