SDL: wikiheaders: Don't mangle Markdown tables in wordwrap.

From 645073961db5764f4522f7cb81251fd0f3fdca5e Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Mon, 8 Apr 2024 23:48:25 -0400
Subject: [PATCH] wikiheaders: Don't mangle Markdown tables in wordwrap.

---
 build-scripts/wikiheaders.pl | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/build-scripts/wikiheaders.pl b/build-scripts/wikiheaders.pl
index 9eb60accca72f..24e2cc6e91e40 100755
--- a/build-scripts/wikiheaders.pl
+++ b/build-scripts/wikiheaders.pl
@@ -178,6 +178,8 @@ sub wordwrap_one_paragraph {  # don't call this directly.
         if ($item ne '') {
             $retval .= wordwrap_with_bullet_indent($bullet, $item);
         }
+    } elsif ($p =~ /\A\s*\|.*\|\s*\n/) {  # Markdown table
+        $retval = "$p\n";  # don't wrap it (!!! FIXME: but maybe parse by lines until we run out of table...)
     } else {
         $retval = wordwrap_atom($p) . "\n";
     }