Bug 698351

Summary: <br> considered as new <p>
Product: MuPDF Reporter: Pablo Rodríguez <ghostscript>
Component: epubAssignee: MuPDF bugs <mupdf-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P4    
Version: unspecified   
Hardware: PC   
OS: Linux   
Customer: Word Size: ---
Bug Depends on: 695935    
Bug Blocks:    
Attachments: ePub with <br/> inside <p>
<br/> displayed by mupdf and ebook-viewer

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.