diff --git a/build-scripts/wikiheaders.pl b/build-scripts/wikiheaders.pl index dfd1913c4..1ed9b530e 100755 --- a/build-scripts/wikiheaders.pl +++ b/build-scripts/wikiheaders.pl @@ -108,7 +108,9 @@ sub wordwrap { $retval .= $2; # don't wrap it. } - return $retval . wordwrap_paragraphs($str); # wrap what's left. + $retval .= wordwrap_paragraphs($str); # wrap what's left. + $retval =~ s/\n+$//; + return $retval; }