Bring back the old behaviour where text messages without format=flowed are auto-wrapped.
Make it the default in text2html class.
| | |
| | | // enables format=flowed parser |
| | | 'flowed' => false, |
| | | // enables wrapping for non-flowed text |
| | | 'wrap' => false, |
| | | 'wrap' => true, |
| | | // line-break tag |
| | | 'break' => "<br>\n", |
| | | // prefix and suffix (wrapper element) |
| | |
| | | */ |
| | | 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; |
| | |
| | | 'break' => '<br>', |
| | | 'links' => false, |
| | | 'flowed' => false, |
| | | 'wrap' => false, |
| | | 'space' => '_', // replace UTF-8 non-breaking space for simpler testing |
| | | ); |
| | | |