From 298d977ee78dde0cf225f8cf1abdd15bf0dba933 Mon Sep 17 00:00:00 2001 From: Natasha Sarkar Date: Thu, 24 Jun 2021 12:05:54 -0700 Subject: [PATCH] add defaultSeqIndent method --- kyaml/internal/forked/github.com/go-yaml/yaml/yaml.go | 5 +++++ 1 file changed, 5 insertions(+) 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) {