We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5827472 commit db98b31Copy full SHA for db98b31
src/tools/pgindent/pgindent
@@ -12,7 +12,7 @@ use IO::Handle;
12
use Getopt::Long;
13
14
# Update for pg_bsd_indent version
15
-my $INDENT_VERSION = "1.2";
+my $INDENT_VERSION = "1.3";
16
my $devnull = File::Spec->devnull;
17
18
# Common indent settings
@@ -286,12 +286,6 @@ sub post_indent
286
# Reduce whitespace between #endif and comments to one tab
287
$source =~ s!^\#endif[ \t]+/\*!#endif /*!gm;
288
289
- # Remove blank line(s) before #else, #elif, and #endif
290
- $source =~ s!\n\n+(\#else|\#elif|\#endif)!\n$1!g;
291
-
292
- # Add blank line before #endif if it is the last line in the file
293
- $source =~ s!\n(#endif.*)\n\z!\n\n$1\n!;
294
295
## Functions
296
297
# Work around misindenting of function with no variables defined.
0 commit comments