diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-12-30 13:30:20 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-12-30 13:30:20 +0000 |
| commit | e393bcc42de7c5a384e250557b4ea1e55ae5f346 (patch) | |
| tree | 701713285f789ee8660535f54aa048d3a31f90ba /roundcubemail/program/steps | |
| parent | 23036f694d1b36295983fa64f29f99f2bb82c12b (diff) | |
Use <pre> instead of <div class=pre>: Fix line-break issue when copy & paste in Firefox (#1485425)
git-svn-id: https://svn.roundcube.net/trunk@2197 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps')
| -rw-r--r-- | roundcubemail/program/steps/mail/func.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/roundcubemail/program/steps/mail/func.inc b/roundcubemail/program/steps/mail/func.inc index b3d7cfc85..3fcdeb0b2 100644 --- a/roundcubemail/program/steps/mail/func.inc +++ b/roundcubemail/program/steps/mail/func.inc @@ -755,8 +755,8 @@ function rcmail_print_body($part, $p = array()) // insert the links for urls and mailtos $body = preg_replace("/##string_replacement\{([0-9]+)\}##/e", "\$replace_strings[\\1]", join("\n", $a_lines)); - - return "<div class=\"pre\">".$body."\n</div>"; + + return html::tag('pre', array(), $body); } /** @@ -924,7 +924,7 @@ function rcmail_message_body($attrib) } } else - $out .= html::div('message-part', html::div('pre', Q($MESSAGE->body))); + $out .= html::div('message-part', html::tag('pre', array(), Q($MESSAGE->body))); $ctype_primary = strtolower($MESSAGE->structure->ctype_primary); |
