From: Bruce Momjian Date: Thu, 7 Oct 2004 02:32:06 +0000 (+0000) Subject: Improve comment after 'else' handling of pgindent. X-Git-Tag: REL8_0_0BETA4~179 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4e28b08e537e295fa460da9ddfa1a11d4c242ce8;p=postgresql Improve comment after 'else' handling of pgindent. --- diff --git a/src/tools/pgindent/pgindent b/src/tools/pgindent/pgindent index 539dac2750..eb0ce1590b 100755 --- a/src/tools/pgindent/pgindent +++ b/src/tools/pgindent/pgindent @@ -38,8 +38,8 @@ do # mark some comments for special treatment later sed 's;/\* *---;/*---X_X;g' | # workaround for indent bug with 'else' handling - sed 's;\([} ]\)else[ ]*\(/\*.*\)$;\1else\ -\2;g' | + sed 's;\([} ]\)else\([ ]*\)\(/\*.*\)$;\1else\ +\2\3;g' | detab -t4 -qc | # work around bug where function that defines no local variables misindents # switch() case lines and line after #else. Do not do for struct/enum.