Explorar o código

wikiheaders: Clean out extra blank lines in function declarations on wiki.

This has been driving me nuts for awhile now.  :)
Ryan C. Gordon hai 10 meses
pai
achega
96bb06d9c7
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      build-scripts/wikiheaders.pl

+ 1 - 0
build-scripts/wikiheaders.pl

@@ -1707,6 +1707,7 @@ if ($copy_direction == 1) {  # --copy-to-headers
         if ($wikitype eq 'mediawiki') {
             $syntax = "<syntaxhighlight lang='c'>\n$decl</syntaxhighlight>\n";
         } elsif ($wikitype eq 'md') {
+            $decl =~ s/\n+\Z//;
             $syntax = "```c\n$decl\n```\n";
         } else { die("Expected wikitype '$wikitype'"); }