Improve reply quoting in HTML messages
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 27 Jan 2010 17:49:47 +0000 (10:49 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 27 Jan 2010 17:49:47 +0000 (10:49 -0700)
Some mailers strip the type attribute from blockquote - switch to doing
straight CSS in a DIV instead.

Lightly shade the reply material to differentiate from new text.

imp/lib/Compose.php

index 2d95f5e..e07a39b 100644 (file)
@@ -1441,9 +1441,9 @@ class IMP_Compose
         if (!empty($msg_text) &&
             ($compose_html || ($msg_text['mode'] == 'html'))) {
             $msg = '<p>' . $this->text2html(trim($msg_pre)) . '</p>' .
-                   '<blockquote type="cite">' .
+                   '<div style="border-left:1px solid blue;padding-left:15px;background-color:#f0f0f0">' .
                    (($msg_text['mode'] == 'text') ? $this->text2html($msg_text['text']) : $msg_text['text']) .
-                   '</blockquote>' .
+                   '</div>' .
                    ($msg_post ? $this->text2html($msg_post) : '') . '<br />';
             $msg_text['mode'] = 'html';
         } else {