Committer: amyshkin
LJSUP-13120: No linebreaks in mass mailingU trunk/cgi-bin/LJ/Hooks/ESN.pm
Modified: trunk/cgi-bin/LJ/Hooks/ESN.pm =================================================================== --- trunk/cgi-bin/LJ/Hooks/ESN.pm 2012-08-07 11:44:33 UTC (rev 12434) +++ trunk/cgi-bin/LJ/Hooks/ESN.pm 2012-08-07 12:01:31 UTC (rev 12435) @@ -76,6 +76,7 @@ }; unless ( $u->{opt_htmlemail} eq 'N' ) { + $html_body =~ s/\n/\n<br\/>/g unless $html_body =~ m!<br!i; $mail_param->{'html'} = $html_body; }