diff --git a/pkg/yqlib/candidate_node.go b/pkg/yqlib/candidate_node.go index 1888f825..02168515 100644 --- a/pkg/yqlib/candidate_node.go +++ b/pkg/yqlib/candidate_node.go @@ -466,9 +466,7 @@ func (n *CandidateNode) UpdateAttributesFrom(other *CandidateNode, prefs assignP } // Preserve EncodeSeparate flag for format-specific encoding hints - if other.EncodeSeparate { - n.EncodeSeparate = true - } + n.EncodeSeparate = other.EncodeSeparate // merge will pickup the style of the new thing // when autocreating nodes