Fix %#v for matrices
This commit is contained in:
1 parent
82b6772ea4
commit
f454ac3150
1 file changed
+7
-1
+7
-1
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user