From c5e890b42f760168f8a43a0d7d9c836082a34b7a Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Wed, 10 Feb 2010 13:21:22 -0700 Subject: [PATCH] Don't wrap HTML->Text reply data --- imp/compose.php | 2 +- imp/lib/Ajax/Application.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/imp/compose.php b/imp/compose.php index 78a2e5393..a032c7c1f 100644 --- a/imp/compose.php +++ b/imp/compose.php @@ -626,7 +626,7 @@ if (!is_null($oldrtemode) && ($oldrtemode != $rtemode)) { array('

 

', '

' . $imp_compose->text2html($sig) . '

'), $msg); } else { - $msg = Horde_Text_Filter::filter($msg, 'html2text', array('charset' => $charset)); + $msg = Horde_Text_Filter::filter($msg, 'html2text', array('charset' => $charset, 'wrap' => false)); } } diff --git a/imp/lib/Ajax/Application.php b/imp/lib/Ajax/Application.php index 16249eaa4..600582c62 100644 --- a/imp/lib/Ajax/Application.php +++ b/imp/lib/Ajax/Application.php @@ -896,7 +896,7 @@ class IMP_Ajax_Application extends Horde_Ajax_Application_Base $result = new stdClass; // Need to replace line endings or else IE won't display line endings // properly. - $result->text = str_replace("\n", "\r\n", Horde_Text_Filter::filter($vars->text, 'html2text', array('charset' => Horde_Nls::getCharset()))); + $result->text = str_replace("\n", "\r\n", Horde_Text_Filter::filter($vars->text, 'html2text', array('charset' => Horde_Nls::getCharset(), 'wrap' => false))); return $result; } -- 2.11.0