Commit f55445422a350d7b28a24ff06693e47de8080627

Ryan C. Gordon 2021-03-25T12:50:18

wikiheaders: when merging into headers, wordwrap in Markdown style.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/build-scripts/wikiheaders.pl b/build-scripts/wikiheaders.pl
index 1a2ced9..1b6b855 100755
--- a/build-scripts/wikiheaders.pl
+++ b/build-scripts/wikiheaders.pl
@@ -466,6 +466,9 @@ if ($warn_about_missing) {
 
 if ($copy_direction == 1) {  # --copy-to-headers
     my %changed_headers = ();
+
+    $wordwrap_mode = 'md';   # the headers use Markdown format.
+
     # if it's not in the headers already, we don't add it, so iterate what we know is already there for changes.
     foreach (keys %headerfuncs) {
         my $fn = $_;