Skip to content
Snippets Groups Projects
Commit 505b9252 authored by Bruce Momjian's avatar Bruce Momjian
Browse files

Fix #elif spacing too.

parent faea3db9
No related branches found
No related tags found
No related merge requests found
......@@ -1648,7 +1648,7 @@ do
print line1;
}
}' |
# remove blank line before #else and #endif
# remove blank line before #else, #elif, and #endif
awk ' BEGIN {line1 = ""; line2 = ""; skips = 0}
{
line2 = $0;
......@@ -1656,6 +1656,7 @@ do
skips--;
if (line1 ~ /^$/ &&
(line2 ~ /^#else/ ||
line2 ~ /^#elif/ ||
line2 ~ /^#endif/))
{
print line2;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment