mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-07-17 17:52:12 +00:00
add defaultSeqIndent method
This commit is contained in:
committed by
Katrina Verey
parent
0ddf68cc8a
commit
95c5b686be
@@ -283,6 +283,11 @@ func (e *Encoder) CompactSeqIndent() {
|
|||||||
e.encoder.emitter.compact_sequence_indent = true
|
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.
|
// Close closes the encoder by writing any remaining data.
|
||||||
// It does not write a stream terminating string "...".
|
// It does not write a stream terminating string "...".
|
||||||
func (e *Encoder) Close() (err error) {
|
func (e *Encoder) Close() (err error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user