Browse Source

wikiheaders.pl: Whitespace fixes.

Ryan C. Gordon 4 years ago
parent
commit
5753fd73c3
1 changed files with 6 additions and 0 deletions
  1. 6 0
      build-scripts/wikiheaders.pl

+ 6 - 0
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");