From fcf3009c6769e766ec17161800ea3751a7238ece Mon Sep 17 00:00:00 2001 From: "lilong.129" Date: Sat, 7 Jun 2025 20:45:35 +0800 Subject: [PATCH] fix: abnormal indent in summary.json --- internal/builtin/utils.go | 4 ++-- internal/version/VERSION | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/builtin/utils.go b/internal/builtin/utils.go index 95772074..7a85508f 100644 --- a/internal/builtin/utils.go +++ b/internal/builtin/utils.go @@ -41,9 +41,9 @@ func Dump2JSON(data interface{}, path string) error { } log.Info().Str("path", path).Msg("dump data to json") - // init json encoder + // Use standard library json encoder with consistent indentation and no HTML escaping buffer := new(bytes.Buffer) - encoder := json.NewEncoder(buffer) + encoder := builtinJSON.NewEncoder(buffer) encoder.SetEscapeHTML(false) encoder.SetIndent("", " ") diff --git a/internal/version/VERSION b/internal/version/VERSION index 74ab24c5..23bba711 100644 --- a/internal/version/VERSION +++ b/internal/version/VERSION @@ -1 +1 @@ -v5.0.0-beta-2506071652 +v5.0.0-beta-2506072045