pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Improve indentation of multiline initialization expressions.
Date: Sat, 08 Apr 2023 15:48:55 +0000
Message-ID: <E1plAoA-002477-61@gemulon.postgresql.org> (raw)

Improve indentation of multiline initialization expressions.

If a variable has an initialization expression that wraps onto the
next line(s), pg_bsd_indent will now indent the continuation lines
one stop, instead of aligning them flush with the variable declaration.

We've been holding off applying this until the last v16 CF finished,
but now it's time.

Thomas Munro and Tom Lane

Discussion: https://postgr.es/m/20230120013137.7ky7nl4e4zjorrfa@awork3.anarazel.de

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/064750af4f4ebab9c0d47d502c7ff7e3c9533f9f

Modified Files
--------------
src/tools/pg_bsd_indent/args.c |  2 +-
src/tools/pg_bsd_indent/io.c   | 11 ++++++-----
src/tools/pgindent/pgindent    |  2 +-
3 files changed, 8 insertions(+), 7 deletions(-)



Message-ID: <E1plAoA-002477-61@gemulon.postgresql.org>
Permalink:  ../E1plAoA-002477-61@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1plAoA-002477-61@gemulon.postgresql.org

 · 

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: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Improve indentation of multiline initialization expressions.
  In-Reply-To: <E1plAoA-002477-61@gemulon.postgresql.org>

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

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