Make pg_bsd_indent add a space between comma and period.
Tom Lane <tgl@sss.pgh.pa.us>
Make pg_bsd_indent add a space between comma and period. Formatting of variadic functions and struct literals with named fields used to be ugly due to pg_bsd_indent treating period as always being a binary operator. After a comma, it's not that, so insert a space. Bump pg_bsd_indent's version so that people who use out-of-tree copies will know they need to update. (This also covers the other pg_bsd_indent behavioral change introduced in a3e6beba6.) Author: Andreas Karlsson <andreas@proxel.se> Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/c3327be8-09e2-46a1-88b4-228a339d6916@proxel.se
Files
| Path | Change | +/− |
|---|---|---|
| src/tools/pg_bsd_indent/args.c | modified | +1 −1 |
| src/tools/pg_bsd_indent/indent.c | modified | +2 −0 |
| src/tools/pg_bsd_indent/tests/declarations.0.stdout | modified | +1 −1 |
| src/tools/pg_bsd_indent/tests/struct.0 | modified | +2 −0 |
| src/tools/pg_bsd_indent/tests/struct.0.stdout | modified | +2 −0 |
| src/tools/pgindent/pgindent | modified | +1 −1 |
Discussion
- Improve pgindent's formatting named fields in struct literals and varidic functions 12 messages · 2026-02-17 → 2026-05-05