diff --git a/core/fmt/fmt.odin b/core/fmt/fmt.odin index 4c65dd01f..b1c95866f 100644 --- a/core/fmt/fmt.odin +++ b/core/fmt/fmt.odin @@ -1973,11 +1973,13 @@ fmt_struct :: proc(fi: ^Info, v: any, the_verb: rune, info: runtime.Type_Info_St // fi.hash = false; fi.indent += 1 - if !is_soa && hash { + is_empty := len(info.names) == 0 + + if !is_soa && hash && !is_empty { io.write_byte(fi.writer, '\n', &fi.n) } defer { - if hash { + if !is_soa && hash && !is_empty { for _ in 0.. 0 { + for _ in 0..