BlockChompingIndicator

org.virtuslab.yaml.internal.load.reader.token.BlockChompingIndicator
See theBlockChompingIndicator companion object
sealed abstract class BlockChompingIndicator(indicator: Char)

Chomping controls how final line breaks and trailing empty lines are interpreted. YAML provides three chomping methods:

  1. 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.

  2. 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.

  3. 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 Object
trait Matchable
class Any
Known subtypes
object Clip
object Keep
object Strip

Members list

Value members

Abstract methods

def removeBlankLinesAtEnd(scalar: String): String

Attributes

Source
BlockChompingIndicator.scala