Mail - avoid blank line at the top when loading drafts

This commit is contained in:
nathangray 2019-07-29 13:22:25 -06:00
parent bfc2728ad3
commit 1bd5987a22

View File

@ -1188,9 +1188,9 @@ class mail_compose
} }
} }
// Skip this part if we're merging, it would add an extra line at the top // Skip this part if we're merging, it would add an extra line at the top
else if ($actionToProcess != 'merge') else if (!$content['body'])
{ {
$content['body'] = ($font_span?($isFirstLoad === "switchedplaintohtml"?$font_part:$font_span):/*($content['mimeType'] == 'html'?'&nbsp;':'')*/'').$content['body'].($isFirstLoad === "switchedplaintohtml"?"</span>":""); $content['body'] = ($font_span?($isFirstLoad === "switchedplaintohtml"?$font_part:$font_span):'').($isFirstLoad === "switchedplaintohtml"?"</span>":"");
} }
//error_log(__METHOD__.__LINE__.$content['body']); //error_log(__METHOD__.__LINE__.$content['body']);