Menu

#6 Multi-line signature issue with HTML composition

open
nobody
None
5
2008-02-06
2008-02-06
No

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.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.