diff --git a/core/fmt/fmt.odin b/core/fmt/fmt.odin index dc5b529ea..1f8949002 100644 --- a/core/fmt/fmt.odin +++ b/core/fmt/fmt.odin @@ -1957,7 +1957,7 @@ fmt_value :: proc(fi: ^Info, v: any, verb: rune) { io.write_string(fi.writer, "matrix[") defer io.write_byte(fi.writer, ']') - fi.indent += 1; defer fi.indent -= 1 + fi.indent += 1 if fi.hash { io.write_byte(fi.writer, '\n') @@ -1987,6 +1987,12 @@ fmt_value :: proc(fi: ^Info, v: any, verb: rune) { } } } + + fi.indent -= 1 + + if fi.hash { + fmt_write_indent(fi) + } } }