wikiheaders: trim whitespace at edges after wordwrapping.

This commit is contained in:
Ryan C. Gordon 2021-07-13 11:11:33 -04:00
parent 0f1079456d
commit 8130950e92
No known key found for this signature in database
GPG Key ID: FA148B892AB48044
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}