mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-07-17 09:49:13 +00:00
compact sequence indentation option
This commit is contained in:
committed by
Katrina Verey
parent
4cadad5cfe
commit
0ddf68cc8a
@@ -278,6 +278,11 @@ func (e *Encoder) SetIndent(spaces int) {
|
||||
e.encoder.indent = spaces
|
||||
}
|
||||
|
||||
// CompactSeqIndent makes it so that '- ' is considered part of the indentation.
|
||||
func (e *Encoder) CompactSeqIndent() {
|
||||
e.encoder.emitter.compact_sequence_indent = true
|
||||
}
|
||||
|
||||
// Close closes the encoder by writing any remaining data.
|
||||
// It does not write a stream terminating string "...".
|
||||
func (e *Encoder) Close() (err error) {
|
||||
|
||||
Reference in New Issue
Block a user