Commit 5753fd73c39a87e7f836bdebfea7a7776958dbec

Ryan C. Gordon 2021-03-24T12:52:48

wikiheaders.pl: Whitespace fixes.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/build-scripts/wikiheaders.pl b/build-scripts/wikiheaders.pl
index dc332a8..a6422d4 100755
--- a/build-scripts/wikiheaders.pl
+++ b/build-scripts/wikiheaders.pl
@@ -427,6 +427,12 @@ while (readdir(DH)) {
     }
     close(FH);
 
+    foreach (keys %sections) {
+        $sections{$_} =~ s/\A\n+//;
+        $sections{$_} =~ s/\n+\Z//;
+        $sections{$_} .= "\n";
+    }
+
     if (0) {
         foreach (@section_order) {
             print("$fn SECTION '$_':\n");