aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/stdlib/tables.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/stdlib/tables.c b/src/stdlib/tables.c
index 58c1b2e4..71b9c7f4 100644
--- a/src/stdlib/tables.c
+++ b/src/stdlib/tables.c
@@ -583,7 +583,7 @@ public Text_t Table$as_text(const void *obj, bool colorize, const TypeInfo_t *ty
return Text$concat(
Text("{"),
generic_as_text(NULL, false, table.key),
- Text(","),
+ Text("="),
generic_as_text(NULL, false, table.value),
Text("}"));
else
@@ -604,6 +604,9 @@ public Text_t Table$as_text(const void *obj, bool colorize, const TypeInfo_t *ty
text = Text$concat(text, Text("="), generic_as_text(entry + val_off, colorize, table.value));
}
+ if (table.value == &Void$info)
+ text = Text$concat(text, Text("/"));
+
if (t->fallback) {
text = Text$concat(text, Text("; fallback="), Table$as_text(t->fallback, colorize, type));
}