Rtrim() quoted lines on conversion to flowed format (according to RFC2646)

pull/88/head
Aleksander Machniak 12 years ago
parent 9deb663f94
commit 68fb9e63f0

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

Loading…
Cancel
Save