Re: pgindent infelicity - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: pgindent infelicity
Date
Msg-id 200701111817.l0BIHgC27181@momjian.us
Whole thread Raw
In response to pgindent infelicity  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane wrote:
> I notice that the latest pgindent run has decided that comments attached
> to "else" should be moved onto the next line, as in this example in
> src/bin/psql/mbprint.c:
> 
>                         {
>                                 linewidth += 4;
>                                 format_size += 4;
>                         }
> -                       else  /* Output itself */
> +                       else
> +                               /* Output itself */
>                         {
>                                 linewidth++;
>                                 format_size += 1;
>                         }
> 
> I find this pretty ugly; can it be fixed?

FYI, I fixed this soon after you reported it.  It will now only push
down multi-line comments after 'else'.

--  Bruce Momjian   bruce@momjian.us EnterpriseDB    http://www.enterprisedb.com
 + If your life is a hard drive, Christ can be your backup. +


pgsql-hackers by date:

Previous
From: "Inaam Rana"
Date:
Subject: Re: Load distributed checkpoint
Next
From: Dave Cramer
Date:
Subject: Re: wal buffers documentation -errata