by @saigowthamr

How to write a multiline string in YAML

Home » yaml » How to write a multiline string in YAML

To write a multiline string in YAML we can use the folded style > where each line break is replaced by a space.

Here is an example:

Key: >
  you can write
  multiline strings
  like this in yaml.

Similarly, you can write like this.

Key: >-
  you can write
  multiline strings
  like this in yaml.

Best Web Development courses