From f0992426d9c5af5046c76a2da86183d0c3a40084 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Tue, 13 May 2014 19:40:00 +0200 Subject: Bring back the old behaviour where text messages without format=flowed are auto-wrapped. Make it the default in text2html class. --- program/steps/mail/func.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'program/steps') 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; -- cgit v1.2.3