Htmlz conversion incorrectly handles <br/>

Bug #1239555 reported by Slobberchopz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Fix Released
Undecided
John Schember

Bug Description

Calibre 1.4.0 32 bit, Windows 7 Home Premium 64 bit

In xhtml and html, <br/> is interpreted as a single line-break, and <br></br> as a double line-break, even though both are 'equivalent' and terminating. This can be tested in any browser, I double checked with chrome and calibre's ebook viewer. When converting from epub to htmlz, <br/> is changed to <br></br>, leading to incorrect rendering.

Thanks.

Revision history for this message
Slobberchopz (slobberchopz) wrote :

This is not a problem when converting epub to epub, so I assume there is some workaround. Also, replacing <br></br> afterwords will not work, since this will in turn change those that were originally so to <br/>.

Revision history for this message
Kovid Goyal (kovid) wrote : Re: calibre bug 1239555

Changing the component for this bug.

 assignee user-none
 status triaged

Changed in calibre:
assignee: nobody → John Schember (user-none)
status: New → Triaged
Changed in calibre:
status: Triaged → Fix Committed
Kovid Goyal (kovid)
Changed in calibre:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.