Skip to content

Commit

Permalink
Use <pre> instead of <div class=pre>: Fix line-break issue when copy …
Browse files Browse the repository at this point in the history
…& paste in Firefox (#1485425)
  • Loading branch information
thomascube committed Dec 30, 2008
1 parent 64db7e1 commit 2780647
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions program/steps/mail/func.inc
Expand Up @@ -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);
}

/**
Expand Down Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions skins/default/mail.css
Expand Up @@ -820,6 +820,7 @@ div.message-htmlpart a
color: #0000CC;
}

div.message-part pre,
div.message-part div.pre
{
margin: 0px;
Expand Down

0 comments on commit 2780647

Please sign in to comment.