Update pkg/yqlib/candidate_node.go

Co-authored-by: ccoVeille <3875889+ccoVeille@users.noreply.github.com>
This commit is contained in:
Mike Farah 2025-12-20 15:05:03 +11:00 committed by GitHub
parent b974d973ee
commit b8d90fd574
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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