Tom Lane wrote: > Bruce Momjian <[EMAIL PROTECTED]> 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.
Right. I don't see it moving comments up on to an else line. You are right that if it is in the first column it will not be properly indented so I just indent it 4 spaces before passing to BSD indent and that works: # workaround for indent bug with 'else' handling # indent comment so BSD indent will move it sed 's;\([} ]\)else[ ]*\(/\*.*\)$;\1else\ \2;g' | -- Bruce Momjian | http://candle.pha.pa.us [EMAIL PROTECTED] | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073 ---------------------------(end of broadcast)--------------------------- TIP 2: you can get off all lists at once with the unregister command (send "unregister YourEmailAddressHere" to [EMAIL PROTECTED])