summaryrefslogtreecommitdiff
path: root/roundcubemail/program
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-03-28 16:51:20 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-03-28 16:51:20 +0000
commitcfd3e92cc55e7b1ff7de80283b83e9f05074fd0e (patch)
treec14b31516fec944c0c9fb0c2adfb1cd43783efb2 /roundcubemail/program
parenta01284abaaae53a267e2e829c215184a2903724a (diff)
- Fix single space inserted on fwd/reply with top posting (#1486532)
git-svn-id: https://svn.roundcube.net/trunk@3433 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
-rw-r--r--roundcubemail/program/steps/mail/compose.inc12
-rw-r--r--roundcubemail/program/steps/mail/func.inc2
2 files changed, 7 insertions, 7 deletions
diff --git a/roundcubemail/program/steps/mail/compose.inc b/roundcubemail/program/steps/mail/compose.inc
index d886801a3..07659307c 100644
--- a/roundcubemail/program/steps/mail/compose.inc
+++ b/roundcubemail/program/steps/mail/compose.inc
@@ -610,17 +610,17 @@ function rcmail_create_reply_body($body, $bodyIsHtml)
$body = rcmail_wash_html($body, array('safe' => $MESSAGE->is_safe), $cid_map);
// build reply (quote content)
- $prefix = sprintf("On %s, %s wrote:<br />\n",
+ $prefix = sprintf("<p>On %s, %s wrote:</p>\n",
$MESSAGE->headers->date,
htmlspecialchars(Q($MESSAGE->get_header('from'), 'replace'), ENT_COMPAT, $RCMAIL->output->get_charset()));
$prefix .= '<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px; width:100%">';
-
+
if ($RCMAIL->config->get('top_posting')) {
- $prefix = "<p></p>" . $prefix;
- $suffix = "</blockquote>";
+ $prefix = '<br>' . $prefix;
+ $suffix = '</blockquote>';
}
else {
- $suffix = "</blockquote><p></p>";
+ $suffix = '</blockquote><p></p>';
}
}
@@ -659,7 +659,7 @@ function rcmail_create_forward_body($body, $bodyIsHtml)
$body = rcmail_wash_html($body, array('safe' => $MESSAGE->is_safe), $cid_map);
$prefix = sprintf(
- "<p></p><p>-------- Original Message --------</p>" .
+ "<br /><p>-------- Original Message --------</p>" .
"<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tbody>" .
"<tr><th align=\"right\" nowrap=\"nowrap\" valign=\"baseline\">Subject: </th><td>%s</td></tr>" .
"<tr><th align=\"right\" nowrap=\"nowrap\" valign=\"baseline\">Date: </th><td>%s</td></tr>" .
diff --git a/roundcubemail/program/steps/mail/func.inc b/roundcubemail/program/steps/mail/func.inc
index 8edd9df8a..93a595602 100644
--- a/roundcubemail/program/steps/mail/func.inc
+++ b/roundcubemail/program/steps/mail/func.inc
@@ -629,7 +629,7 @@ function rcmail_wash_html($html, $p = array(), $cid_replaces)
'cid_map' => $cid_replaces,
'html_elements' => array('body'),
);
-
+
if (!$p['inline_html']) {
$wash_opts['html_elements'] = array('html','head','title','body');
}