diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-08-30 13:57:48 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-08-30 13:57:48 -0400 |
| commit | db4048734179c047d64284281f72a531f166f11e (patch) | |
| tree | b99663c5764bcb45b36bce2cbcdd037b790b8f48 /src | |
| parent | a6cce3d83b7098ef746824ef07ce19145483c912 (diff) | |
Tweak arg formatting
Diffstat (limited to 'src')
| -rw-r--r-- | src/formatter/args.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/formatter/args.c b/src/formatter/args.c index 6bd07b28..8bbbbd58 100644 --- a/src/formatter/args.c +++ b/src/formatter/args.c @@ -13,7 +13,7 @@ OptionalText_t format_inline_arg(arg_ast_t *arg, Table_t comments) { if (arg->name == NULL && arg->value) return must(format_inline_code(arg->value, comments)); Text_t code = Text$from_str(arg->name); if (arg->type) code = Texts(code, ":", must(format_type(arg->type))); - if (arg->value) code = Texts(code, " = ", must(format_inline_code(arg->value, comments))); + if (arg->value) code = Texts(code, "=", must(format_inline_code(arg->value, comments))); return code; } @@ -23,7 +23,7 @@ Text_t format_arg(arg_ast_t *arg, Table_t comments, Text_t indent) { if (arg->name == NULL && arg->value) return format_code(arg->value, comments, indent); Text_t code = Text$from_str(arg->name); if (arg->type) code = Texts(code, ":", format_type(arg->type)); - if (arg->value) code = Texts(code, " = ", format_code(arg->value, comments, indent)); + if (arg->value) code = Texts(code, "=", format_code(arg->value, comments, indent)); return code; } |
