summaryrefslogtreecommitdiff
path: root/program/steps
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-05-13 19:40:00 +0200
committerAleksander Machniak <alec@alec.pl>2014-05-13 19:40:00 +0200
commitf0992426d9c5af5046c76a2da86183d0c3a40084 (patch)
tree5a0e598d9262c5d7dd637bd4787e54d3186c7adc /program/steps
parent1053ae5e729203b16d792c53640b6273feed2056 (diff)
Bring back the old behaviour where text messages without format=flowed are auto-wrapped.
Make it the default in text2html class.
Diffstat (limited to 'program/steps')
-rw-r--r--program/steps/mail/func.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc
index ac0d7fc5f..a1d1a4163 100644
--- a/program/steps/mail/func.inc
+++ b/program/steps/mail/func.inc
@@ -874,7 +874,8 @@ function rcmail_print_body($part, $p = array())
*/
function rcmail_plain_body($body, $flowed = false)
{
- $text2html = new rcube_text2html($body, false, array('flowed' => $flowed));
+ $options = array('flowed' => $flowed, 'wrap' => !$flowed);
+ $text2html = new rcube_text2html($body, false, $options);
$body = $text2html->get_html();
return $body;