|
|
@ -544,8 +544,8 @@ class rcube_mime
|
|
|
|
if ($line[0] == '>') {
|
|
|
|
if ($line[0] == '>') {
|
|
|
|
// remove quote chars, store level in $level
|
|
|
|
// remove quote chars, store level in $level
|
|
|
|
$line = preg_replace('/^>+/', '', $line, -1, $level);
|
|
|
|
$line = preg_replace('/^>+/', '', $line, -1, $level);
|
|
|
|
// remove (optional) space-staffing
|
|
|
|
// remove (optional) space-staffing and spaces before the line end
|
|
|
|
$line = preg_replace('/^ /', '', $line);
|
|
|
|
$line = preg_replace('/(^ | +$)/', '', $line);
|
|
|
|
$prefix = str_repeat('>', $level) . ' ';
|
|
|
|
$prefix = str_repeat('>', $level) . ' ';
|
|
|
|
$line = $prefix . self::wordwrap($line, $length - $level - 2, " \r\n$prefix", false, $charset);
|
|
|
|
$line = $prefix . self::wordwrap($line, $length - $level - 2, " \r\n$prefix", false, $charset);
|
|
|
|
}
|
|
|
|
}
|
|
|
|