diff options
author | alecpl <alec@alec.pl> | 2011-04-11 12:24:00 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2011-04-11 12:24:00 +0000 |
commit | d3105370870a8c51aaeb6a18f561311202da3356 (patch) | |
tree | 9b0d50549f35a44d7eb438bd7ad3dfa9ca72d263 /program/include/rcube_message.php | |
parent | 382b8b1351e1a4598f04ab184cec803b96d7e4b7 (diff) |
- Apply fixes from trunk
Diffstat (limited to 'program/include/rcube_message.php')
-rw-r--r-- | program/include/rcube_message.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/program/include/rcube_message.php b/program/include/rcube_message.php index 5c0773815..6ffe9194d 100644 --- a/program/include/rcube_message.php +++ b/program/include/rcube_message.php @@ -725,7 +725,9 @@ class rcube_message $line = $prefix . rc_wordwrap($line, $length - $level - 2, " \r\n$prefix "); } else if ($line) { - $line = ' ' . rc_wordwrap(rtrim($line), $length - 2, " \r\n "); + $line = rc_wordwrap(rtrim($line), $length - 2, " \r\n"); + // space-stuffing + $line = preg_replace('/(^|\r\n)(From| |>)/', '\\1 \\2', $line); } $text[$idx] = $line; |