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

This has been driving me nuts for awhile now.  :)
This commit is contained in:
Ryan C. Gordon 2024-06-11 12:37:41 -04:00
parent 386aa56711
commit 96bb06d9c7
No known key found for this signature in database
GPG key ID: FA148B892AB48044

View file

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