Multi-line signature issue with HTML composition
Brought to you by:
cbruyland
In email.compose.php at the end of the file use:
if (!empty($SESSION['email_compose']['htmlEditor'])) {
$useHTMLEditor = true;
$SESSION['email_compose']['htmlEditor'] = true;
+ // Handle multi-line signatures
+ $text = str_replace("\r\n\r\n","<p />",$text);
+ $text = str_replace("\r\n","<br />",$text);
} else {
$useHTMLEditor = false;
$SESSION['email_compose']['htmlEditor'] = false;
}
that's because HTML composition needs an obvious translation. Cheers.