diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-08-30 15:04:44 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-08-30 15:04:44 -0400 |
| commit | 688b0ae7bd433c4d7daf96505581f90e719f033c (patch) | |
| tree | 15c01e761c4b915171621ee7984e244e86084b0c /src/formatter/args.c | |
| parent | ca3b72d1f5a230cc5b25edd55918864c2df248b5 (diff) | |
Formatting tweaks to argument lists
Diffstat (limited to 'src/formatter/args.c')
| -rw-r--r-- | src/formatter/args.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/formatter/args.c b/src/formatter/args.c index 8bbbbd58..34d234df 100644 --- a/src/formatter/args.c +++ b/src/formatter/args.c @@ -49,7 +49,8 @@ Text_t format_args(arg_ast_t *args, Table_t comments, Text_t indent) { if (args->name && args->next && args->type == args->next->type && args->value == args->next->value) { code = Texts(code, Text$from_str(args->name), ","); } else { - add_line(&code, Texts(format_arg(args, comments, indent), ","), indent); + code = Texts(code, "\n", indent, single_indent, + format_arg(args, comments, Texts(indent, single_indent, single_indent)), ","); } } return code; |
