wikiheaders: trim whitespace at edges after wordwrapping.
diff --git a/build-scripts/wikiheaders.pl b/build-scripts/wikiheaders.pl
index dfd1913..1ed9b53 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;
}