Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7690b41 commit 5d0a43cCopy full SHA for 5d0a43c
src/tools/pgindent/pgindent
@@ -1648,14 +1648,15 @@ do
1648
print line1;
1649
}
1650
}' |
1651
-# remove blank line before #endif
+# remove blank line before #else and #endif
1652
awk ' BEGIN {line1 = ""; line2 = ""; skips = 0}
1653
{
1654
line2 = $0;
1655
if (skips > 0)
1656
skips--;
1657
if (line1 ~ /^$/ &&
1658
- line2 ~ /^#endif/)
+ (line2 ~ /^#else/ ||
1659
+ line2 ~ /^#endif/))
1660
1661
print line2;
1662
line2 = "";
0 commit comments