From 05c7b8ffb1b1c96b2d63dd421384fe9e058d2e59 Mon Sep 17 00:00:00 2001 From: Samuel Chan Date: Thu, 7 Aug 2025 14:45:49 +0800 Subject: [PATCH] fix: Missing trailing newline when using both --multi and --string options --- interpreter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interpreter.go b/interpreter.go index 4bec1f6e..66397883 100644 --- a/interpreter.go +++ b/interpreter.go @@ -914,7 +914,7 @@ func (i *interpreter) manifestAndSerializeMulti(v value, stringOutputMode bool) if stringOutputMode { switch val := fileJSON.(type) { case string: - r[filename] = val + r[filename] = val + "\n" default: msg := fmt.Sprintf("multi mode: top-level object's key %s has a value of type %T, "+ "should be a string", filename, val)