Browse Source

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

Ryan C. Gordon 4 years ago
parent
commit
f55445422a
1 changed files with 3 additions and 0 deletions
  1. 3 0
      build-scripts/wikiheaders.pl

+ 3 - 0
build-scripts/wikiheaders.pl

@@ -466,6 +466,9 @@ if ($warn_about_missing) {
 
 
 if ($copy_direction == 1) {  # --copy-to-headers
 if ($copy_direction == 1) {  # --copy-to-headers
     my %changed_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.
     # 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) {
     foreach (keys %headerfuncs) {
         my $fn = $_;
         my $fn = $_;