How many Types of foldings in YAML?

Category: YAMLHow many Types of foldings in YAML?
Editor">Editor Staff asked 2 years ago

How many Types of foldings in YAML?

1 Answers
Editor">Editor Staff answered 2 years ago
Types of foldings

Block folding

  • In this the final line break and trailing empty lines are chomped and never folded.
  • The line breaks which are surrounded by text lines which contains leading white space are not subjected to folding.
  • The rules that are followed in the block folding are paragraph is interpreted as a line , empty lines as line feed and finally more indented lines are preserved.

Flow folding

  • The structure in the line folding depends on the indicators rather than indentation.
  • The rules that are followed in flow folding are paragraph is interpreted as a line, empty line as line feed and text can be more indented without effecting the content.