Skip to content

Commit 505b925

Browse files
committed
Fix #elif spacing too.
1 parent faea3db commit 505b925

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/tools/pgindent/pgindent

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1648,14 +1648,15 @@ do
16481648
print line1;
16491649
}
16501650
}' |
1651-
# remove blank line before #else and #endif
1651+
# remove blank line before #else, #elif, and #endif
16521652
awk ' BEGIN {line1 = ""; line2 = ""; skips = 0}
16531653
{
16541654
line2 = $0;
16551655
if (skips > 0)
16561656
skips--;
16571657
if (line1 ~ /^$/ &&
16581658
(line2 ~ /^#else/ ||
1659+
line2 ~ /^#elif/ ||
16591660
line2 ~ /^#endif/))
16601661
{
16611662
print line2;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy