Table of Contents

YamlBlockChomping Enum

Definition

Namespace
Bodu.Text.Yaml
Assembly
Bodu.Text.Yaml.dll
Package
Bodu.Text.Yaml 1.0.0
Source
YamlBlockChomping.cs

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 = 0

The 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 = 1

The strip indicator (-). All trailing line breaks are removed.

Keep = 2

The 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

ProductVersions
.NET8, 10