What is Line Folding in YAML?

Category: YAMLWhat is Line Folding in YAML?
Editor">Editor Staff asked 2 years ago

What is Line Folding in YAML?

1 Answers
Editor">Editor Staff answered 2 years ago

Line folding can be defined as breaking of lines for human readability.

  • If empty line appears after the line break, then it is chopped.
  • If the line is not empty, then line break is converted into single space.
  • Line folding is applied to styles of scalar content like block style and flow style.