Fix %#v for matrices

This commit is contained in:
gingerBill
2021-10-20 00:43:07 +01:00
parent 82b6772ea4
commit f454ac3150

View File

@@ -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)
}
}
}