summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-05-09 19:36:14 +0200
committerAleksander Machniak <alec@alec.pl>2013-05-09 19:36:14 +0200
commit71ec1b6063378c684c6db9b2b63475d52e0ac165 (patch)
treef1b47e67b48efe09f0d547beef758cc5085fe7d4
parentc8f5588c8a712d5d5f36b6c2b44992384c503d6c (diff)
Fix format=flowed text re-wrapping for display
-rw-r--r--program/steps/mail/func.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc
index be7646324..7ef821676 100644
--- a/program/steps/mail/func.inc
+++ b/program/steps/mail/func.inc
@@ -772,10 +772,12 @@ function rcmail_plain_body($body, $flowed=false)
if ($q > $quote_level) {
$body[$n] = $replacer->get_replacement($replacer->add(
str_repeat('<blockquote>', $q - $quote_level))) . $body[$n];
+ $last = $n;
}
else if ($q < $quote_level) {
$body[$n] = $replacer->get_replacement($replacer->add(
str_repeat('</blockquote>', $quote_level - $q))) . $body[$n];
+ $last = $n;
}
else if ($flowed) {
// previous line is flowed