Minor comments about matrix printing

This commit is contained in:
gingerBill
2021-11-03 11:34:47 +00:00
parent 8429943569
commit 8a626ef564

View File

@@ -1927,8 +1927,8 @@ fmt_value :: proc(fi: ^Info, v: any, verb: rune) {
fi.indent += 1
if fi.hash {
// Printed as it is written
io.write_byte(fi.writer, '\n')
// TODO(bill): Should this render it like in written form? e.g. tranposed
for col in 0..<info.column_count {
fmt_write_indent(fi)
for row in 0..<info.row_count {
@@ -1942,6 +1942,7 @@ fmt_value :: proc(fi: ^Info, v: any, verb: rune) {
io.write_string(fi.writer, ",\n")
}
} else {
// Printed in Row-Major layout to match text layout
for col in 0..<info.column_count {
if col > 0 { io.write_string(fi.writer, "; ") }
for row in 0..<info.row_count {