redundant space in html2text
Status: Beta
Brought to you by:
jhsolorz
in html2text.inc, function addWordToLine, change the relevant section to:
...
if ($prevLine != "") {
if ($toAdd && !preg_match("/\s$/",$toAdd)) // add space only if needed - if $toAdd does not end in whitespace
$prevLine .= " ";
} else {
$prevLine = $this->getIndentation($word === $this->TOKEN_AFTERLI);
}
...