public inbox for [email protected]  
help / color / mirror / Atom feed
From: Tom Lane <[email protected]>
To: [email protected]
Subject: pgsql: Make pg_bsd_indent add a space between comma and period.
Date: Wed, 13 May 2026 14:22:20 +0000
Message-ID: <[email protected]> (raw)

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 <[email protected]>
Reviewed-by: Tom Lane <[email protected]>
Discussion: https://postgr.es/m/[email protected]

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/b518ba4affed8d3a47944d769d33b7814d88ddb2

Modified Files
--------------
src/tools/pg_bsd_indent/args.c                      | 2 +-
src/tools/pg_bsd_indent/indent.c                    | 2 ++
src/tools/pg_bsd_indent/tests/declarations.0.stdout | 2 +-
src/tools/pg_bsd_indent/tests/struct.0              | 2 ++
src/tools/pg_bsd_indent/tests/struct.0.stdout       | 2 ++
src/tools/pgindent/pgindent                         | 2 +-
6 files changed, 9 insertions(+), 3 deletions(-)



reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: pgsql: Make pg_bsd_indent add a space between comma and period.
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox