- Don't trim spaces from the end of line when converting to format=flowed

release-0.6
alecpl 14 years ago
parent ed302bbbed
commit 618cb0d8dd

@ -621,7 +621,7 @@ class rcube_message
foreach (preg_split('/\r?\n/', trim($text)) as $line) {
// don't wrap quoted lines (to avoid wrapping problems)
if ($line[0] != '>')
$line = rc_wordwrap(rtrim($line), $length - 1, " \r\n");
$line = rc_wordwrap(rtrim($line, "\r\n"), $length - 1, " \r\n");
$out .= $line . "\r\n";
}

Loading…
Cancel
Save