Profile picture of Michael GroßklausMichael Großklaus

RSS
Color scheme

TIL: YAML indicators for multiline strings

There are different indicators to define how multiline strings in YAML files behave.

Block style indicators describe how line breaks behave: With a | (literal style) they are kept as a line break. With a > (folded style) they are converted to a space.

Block chomping indicators describe how line breaks at the end of the string behave: + keeps all of them, - removes them. Without an indicator, one line break will be added to end of the string.