Bug 698351 - <br> considered as new <p>
Summary: <br> considered as new <p>
Status: RESOLVED FIXED
Alias: None
Product: MuPDF
Classification: Unclassified
Component: epub (show other bugs)
Version: unspecified
Hardware: PC Linux
: P4 normal
Assignee: MuPDF bugs
URL:
Keywords:
Depends on: 695935
Blocks:
  Show dependency tree
 
Reported: 2017-08-13 00:14 UTC by Pablo Rodríguez
Modified: 2021-02-16 14:09 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments
ePub with <br/> inside <p> (3.44 KB, application/epub+zip)
2017-08-13 00:14 UTC, Pablo Rodríguez
Details
<br/> displayed by mupdf and ebook-viewer (46.53 KB, image/png)
2017-08-13 00:15 UTC, Pablo Rodríguez
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pablo Rodríguez 2017-08-13 00:14:00 UTC
Created attachment 14062 [details]
ePub with <br/> inside <p>

In the attached ePub document, there is a <p> which contains a <br/> element.

Distance applied to the new line should be the one set in "line-height", not in margins or paddings.

The screenshot shows the display by mupdf-gl-1.11 on the left and what calibre shows on the right.
Comment 1 Pablo Rodríguez 2017-08-13 00:15:36 UTC
Created attachment 14063 [details]
<br/> displayed by mupdf and ebook-viewer
Comment 2 Pablo Rodríguez 2017-11-26 12:15:57 UTC
The issue is still present in version 1.12-rc1.
Comment 3 Pablo Rodríguez 2018-09-27 11:27:59 UTC
I’m afraid that the issue is still present in version 1.14-rc1.
Comment 4 Pablo Rodríguez 2020-02-13 19:05:30 UTC
Issue is still pending.

Report is about two years old.
Comment 5 Tor Andersson 2021-02-16 14:09:30 UTC
commit e80caafb69bcf3e1c868e8a5f1ea22daf1464eb2
Author: Tor Andersson <tor.andersson@artifex.com>
Date:   Fri Apr 24 15:16:07 2020 +0200

    html: Insert <br> as flow nodes.
    
    This fixes several issues with <br> tags interacting
    badly with css margins and selectors due to how we were
    splitting blocks in order to insert the new-lines from <br>.
    
    This fixes bugs 698351 and 702856.