Chomping controls how final line breaks and trailing empty lines are interpreted. YAML provides three chomping methods:
-
Strip - stripping is specified by the “-” chomping indicator. In this case, the final line break and any trailing empty lines are excluded from the scalar’s content.
-
Clip - clipping is the default behavior used if no explicit chomping indicator is specified. In this case, the final line break character is preserved in the scalar’s content. However, any trailing empty lines are excluded from the scalar’s content.
-
Keep - keeping is specified by the “+” chomping indicator. In this case, the final line break and any trailing empty lines are considered to be part of the scalar’s content. These additional lines are not subject to folding.
Attributes
- Companion
- object
- Source
- BlockChompingIndicator.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes