Re: pgindent infelicity

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: pgindent infelicity
Дата
Msg-id 200701111817.l0BIHgC27181@momjian.us
обсуждение исходный текст
Ответ на pgindent infelicity  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: "Inaam Rana"
Дата:
Сообщение: Re: Load distributed checkpoint
Следующее
От: Dave Cramer
Дата:
Сообщение: Re: wal buffers documentation -errata