diff --git a/kyaml/internal/forked/github.com/go-yaml/yaml/yaml.go b/kyaml/internal/forked/github.com/go-yaml/yaml/yaml.go index 447b7fe2b..bb6418dba 100644 --- a/kyaml/internal/forked/github.com/go-yaml/yaml/yaml.go +++ b/kyaml/internal/forked/github.com/go-yaml/yaml/yaml.go @@ -283,6 +283,11 @@ func (e *Encoder) CompactSeqIndent() { e.encoder.emitter.compact_sequence_indent = true } +// DefaultSeqIndent makes it so that '- ' is not considered part of the indentation. +func (e *Encoder) DefaultSeqIndent() { + e.encoder.emitter.compact_sequence_indent = false +} + // Close closes the encoder by writing any remaining data. // It does not write a stream terminating string "...". func (e *Encoder) Close() (err error) {