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

From 96bb06d9c703061db8e7b156515dfa37af6720d7 Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Tue, 11 Jun 2024 12:37:41 -0400
Subject: [PATCH] wikiheaders: Clean out extra blank lines in function
 declarations on wiki.

This has been driving me nuts for awhile now.  :)
---
 build-scripts/wikiheaders.pl | 1 +
 1 file changed, 1 insertion(+)

diff --git a/build-scripts/wikiheaders.pl b/build-scripts/wikiheaders.pl
index 83a764875bc0b..b185c0ddfc5c1 100755
--- a/build-scripts/wikiheaders.pl
+++ b/build-scripts/wikiheaders.pl
@@ -1707,6 +1707,7 @@ sub print_undocumented_section {
         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'"); }