Re: pgindent complaint of the day - Mailing list pgsql-hackers

From Tom Lane
Subject Re: pgindent complaint of the day
Date
Msg-id 23446.1097119161@sss.pgh.pa.us
Whole thread Raw
In response to Re: pgindent complaint of the day  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: pgindent complaint of the day
List pgsql-hackers
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> Tom Lane wrote:
>> If it were "the else's indent plus one more tab" it would be reasonably
>> sane; it'd match the indentation of what comes next.

> OK, I can do that but consider:
> [ other case ]

Just out of curiosity, what will pgindent do when re-run on the file
with the comment already split to the next line?  My experience with
it so far is that it will not move a comment that starts in column 1,
but it will feel free to re-indent a comment that has some indentation.
A reasonable goal here would be that running pgindent a second time does
not create immediate further changes.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: pgindent complaint of the day
Next
From: Gavin Sherry
Date:
Subject: Re: initdb crash