Suggested changes

This commit is contained in:
Phani Teja Marupaka
2021-07-12 23:27:09 -07:00
parent 74e867833a
commit 29be7fabe4
6 changed files with 54 additions and 116 deletions

View File

@@ -108,7 +108,7 @@ func (w ByteWriter) Write(inputNodes []*yaml.RNode) error {
// don't wrap the elements
if w.WrappingKind == "" {
for i := range nodes {
if seqIndentsForNodes[i] == string(yaml.WideSeqIndent) {
if seqIndentsForNodes[i] == string(yaml.WideSequenceStyle) {
encoder.DefaultSeqIndent()
} else {
encoder.CompactSeqIndent()