From 618cb0d8dde52c2c8a181334e7a3c33fbc26c236 Mon Sep 17 00:00:00 2001 From: alecpl Date: Fri, 10 Sep 2010 13:22:54 +0000 Subject: - Don't trim spaces from the end of line when converting to format=flowed --- program/include/rcube_message.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/program/include/rcube_message.php b/program/include/rcube_message.php index 8ba607ce1..ba59bae07 100644 --- a/program/include/rcube_message.php +++ b/program/include/rcube_message.php @@ -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"; } -- cgit v1.2.3