Update pkg/yqlib/encoder_toml.go

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

View File

@ -93,7 +93,7 @@ func (te *tomlEncoder) formatScalar(node *CandidateNode) string {
return node.Value
case "!!null":
// TOML does not have null; encode as empty string
return "\"\""
return `""`
default:
return node.Value
}