YamlBlockChomping Enum
Definition
Specifies how trailing line breaks are handled in a block scalar (the literal | or folded >
styles), corresponding to the chomping indicator in the block scalar header.
public enum YamlBlockChomping
- Extension Methods
Fields
Clip = 0The clip indicator (no character). A single trailing line break is kept, and any further trailing blank lines are removed. This is the default when no chomping indicator is present.
Strip = 1The strip indicator (
-). All trailing line breaks are removed.Keep = 2The keep indicator (
+). All trailing line breaks, including blank lines, are preserved.
Remarks
The chomping indicator controls only the final line breaks at the end of the block scalar's content; line breaks within the content follow the literal or folded style rules instead.
Applies to
| Product | Versions |
|---|---|
| .NET | 8, 10 |