aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-04-06 16:22:34 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-04-06 16:22:34 -0400
commit2640c138b305b558bccf1d36f3f0d54fab96e84c (patch)
treef889f5493a58308e8ec65ffe454d35a4d624c458
parent83b7ca60ec9db86a114bc7c9b089ef14742d5876 (diff)
parent6fda59fd5e57e9267d2ec0480d53b5f9b0546855 (diff)
Merge branch 'main' into no-colons
-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));
}