Use <pre> instead of <div class=pre>: Fix line-break issue when copy & paste in Firefox (#1485425)
| | |
| | | // 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); |
| | | } |
| | | |
| | | /** |
| | |
| | | } |
| | | } |
| | | 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); |
| | |
| | | color: #0000CC; |
| | | } |
| | | |
| | | div.message-part pre, |
| | | div.message-part div.pre |
| | | { |
| | | margin: 0px; |