Skip to content

multiple line breaks inside font tag with br #79

Closed

Description

@medoni

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

Activity

  1. Licshee commented on May 23, 2017

    @Licshee
    Collaborator

    I want to say I'll look into it, but currently I can't do it as something happened in my family

  2. eXpl0it3r commented on Nov 23, 2026

    @eXpl0it3r
    Collaborator

    Fixed with #243, which switched HTML parsing to the HtmlKit tokenizer. The Outlook markup renders Line1 to Line4 on four lines without an extra empty line. Closing this, but feel free to reopen with a repro if it still happens with 2.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions