mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-07 00:17:37 +08:00
fix: abnormal indent in summary.json
This commit is contained in:
@@ -41,9 +41,9 @@ func Dump2JSON(data interface{}, path string) error {
|
|||||||
}
|
}
|
||||||
log.Info().Str("path", path).Msg("dump data to json")
|
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)
|
buffer := new(bytes.Buffer)
|
||||||
encoder := json.NewEncoder(buffer)
|
encoder := builtinJSON.NewEncoder(buffer)
|
||||||
encoder.SetEscapeHTML(false)
|
encoder.SetEscapeHTML(false)
|
||||||
encoder.SetIndent("", " ")
|
encoder.SetIndent("", " ")
|
||||||
|
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
v5.0.0-beta-2506071652
|
v5.0.0-beta-2506072045
|
||||||
|
|||||||
Reference in New Issue
Block a user