HTML-Renderer icon indicating copy to clipboard operation
HTML-Renderer copied to clipboard

multiple line breaks inside font tag with br

Open medoni opened this issue 8 years ago • 1 comments

The following html will not rendered correctly:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD></HEAD>
<BODY>
    <FONT face=Arial>
        <DIV>Line1<BR></DIV>
        Line2<BR>
        Line3 
        <DIV>Line4</DIV>
    </FONT>
</BODY>
</HTML>

I know this is very ugly html. This is from Microsoft Outlook.

Output: (the browser on the right is chrome) 20170523 114550

If you remove the first br tag (inside the div tag) it renders as expected

medoni avatar May 23 '17 09:05 medoni