From ce467384e263d459f70915742baccc87c2aa9b79 Mon Sep 17 00:00:00 2001 From: alecpl Date: Sun, 28 Mar 2010 16:51:20 +0000 Subject: - Fix single space inserted on fwd/reply with top posting (#1486532) --- program/steps/mail/compose.inc | 12 ++++++------ program/steps/mail/func.inc | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'program/steps/mail') diff --git a/program/steps/mail/compose.inc b/program/steps/mail/compose.inc index d886801a3..07659307c 100644 --- a/program/steps/mail/compose.inc +++ b/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:
\n", + $prefix = sprintf("

On %s, %s wrote:

\n", $MESSAGE->headers->date, htmlspecialchars(Q($MESSAGE->get_header('from'), 'replace'), ENT_COMPAT, $RCMAIL->output->get_charset())); $prefix .= '
'; - + if ($RCMAIL->config->get('top_posting')) { - $prefix = "

" . $prefix; - $suffix = "
"; + $prefix = '
' . $prefix; + $suffix = ''; } else { - $suffix = "

"; + $suffix = '

'; } } @@ -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( - "

-------- Original Message --------

" . + "

-------- Original Message --------

" . "" . "" . "" . diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc index 8edd9df8a..93a595602 100644 --- a/program/steps/mail/func.inc +++ b/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'); } -- cgit v1.2.3
Subject: %s
Date: %s