ソースを参照

wikiheaders.pl: Whitespace fixes.

Ryan C. Gordon 5 年 前
コミット
5753fd73c3
1 ファイル変更6 行追加0 行削除
  1. 6 0
      build-scripts/wikiheaders.pl

+ 6 - 0
build-scripts/wikiheaders.pl

@@ -427,6 +427,12 @@ while (readdir(DH)) {
     }
     }
     close(FH);
     close(FH);
 
 
+    foreach (keys %sections) {
+        $sections{$_} =~ s/\A\n+//;
+        $sections{$_} =~ s/\n+\Z//;
+        $sections{$_} .= "\n";
+    }
+
     if (0) {
     if (0) {
         foreach (@section_order) {
         foreach (@section_order) {
             print("$fn SECTION '$_':\n");
             print("$fn SECTION '$_':\n");