Don't wrap HTML->Text reply data
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 10 Feb 2010 20:21:22 +0000 (13:21 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Thu, 11 Feb 2010 08:24:54 +0000 (01:24 -0700)
imp/compose.php
imp/lib/Ajax/Application.php

index 78a2e53..a032c7c 100644 (file)
@@ -626,7 +626,7 @@ if (!is_null($oldrtemode) && ($oldrtemode != $rtemode)) {
                            array('<p>&nbsp;</p>', '<p class="imp-signature"><!--begin_signature-->' . $imp_compose->text2html($sig) . '<!--end_signature--></p>'),
                            $msg);
     } else {
-        $msg = Horde_Text_Filter::filter($msg, 'html2text', array('charset' => $charset));
+        $msg = Horde_Text_Filter::filter($msg, 'html2text', array('charset' => $charset, 'wrap' => false));
     }
 }
 
index 16249ea..600582c 100644 (file)
@@ -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;
     }