Skip to content

<br/> tag incorrectly wraps preceding word to new line #519

@vjapolitzer

Description

@vjapolitzer

Affected Version

0.15.0

Describe the Bug

The <br/> HTML tag is not being handled correctly. Instead of simply starting the subsequent text on a new line, the tag is also forcing the word immediately preceding it to wrap to the new line as well.

Steps to Reproduce

  1. Open an epub containing HTML line breaks (See attached example: LineBreakTest.epub.zip).
  2. Locate a segment of text formatted as Word1<br/>Word2.
  3. Observe that Word1 is pushed to the next line along with Word2, rather than staying on the previous line.

Expected Behavior

The text preceding the <br/> tag should remain on its original line. Only the text following the tag should begin on a new line.

Relevant Log Output/Screenshots

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageBug to be triaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions