ebook-edit drops STYLE attribute from HTML tags

Bug #1810193 reported by Jarrad Richards
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Fix Released
Undecided
Unassigned

Bug Description

A newly downloaded AZW3 has the following opening HTML tag on all the html pages:

<html xmlns="http://www.w3.org/1999/xhtml" style="font-size:1.205rem;">

When making any edit to the book (e.g., beautify and undo any page), this STYLE attribute is dropped from all html pages, leaving just:

<html xmlns="http://www.w3.org/1999/xhtml">

I came across this because I was trying a simply edit on the css to increase indents and found the font size of everything was much smaller after the edit, I'm guessing due to the lack of the above and because most of the basic elements used throughout the book have font-size: 0.833em; in their css.

Revision history for this message
Kovid Goyal (kovid) wrote : Fixed in master

Fixed in branch master. The fix will be in the next release. calibre is usually released every alternate Friday.

 status fixreleased

Changed in calibre:
status: New → 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.