From 8fcf511e7ba576662863494453d9bedd2af039a3 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 4 Jun 2025 14:33:27 -0400 Subject: Fix spacing on non-color doctest output --- src/stdlib/stdlib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stdlib/stdlib.c b/src/stdlib/stdlib.c index 6dfc735b..fa41cda6 100644 --- a/src/stdlib/stdlib.c +++ b/src/stdlib/stdlib.c @@ -510,7 +510,7 @@ public void end_inspect(const void *expr, const TypeInfo_t *type) Text_t expr_text = generic_as_text(expr, USE_COLOR, type); Text_t type_name = generic_as_text(NULL, false, type); for (int i = 0; i < 3*_inspect_depth; i++) fputc(' ', stdout); - fprint(stdout, USE_COLOR ? "\x1b[33;1m=\x1b[0m " : " =", expr_text, USE_COLOR ? " \x1b[2m: \x1b[36m" : " : ", type_name, USE_COLOR ? "\033[m" : ""); + fprint(stdout, USE_COLOR ? "\x1b[33;1m=\x1b[0m " : "= ", expr_text, USE_COLOR ? " \x1b[2m: \x1b[36m" : " : ", type_name, USE_COLOR ? "\033[m" : ""); } } -- cgit v1.2.3