]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Make pg_bsd_indent add a space between comma and period.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 13 May 2026 14:17:57 +0000 (10:17 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 13 May 2026 14:17:57 +0000 (10:17 -0400)
commitb518ba4affed8d3a47944d769d33b7814d88ddb2
treec0e00ac66127de06109a79ad7fc8d32f3f74b832
parenta3e6beba60ec4e6804e91200e407d046414f18de
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
src/tools/pg_bsd_indent/args.c
src/tools/pg_bsd_indent/indent.c
src/tools/pg_bsd_indent/tests/declarations.0.stdout
src/tools/pg_bsd_indent/tests/struct.0
src/tools/pg_bsd_indent/tests/struct.0.stdout
src/tools/pgindent/pgindent