Remove unused CSS leaves unreferenced stylesheets intact

Bug #1939469 reported by Calum McConnell
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Fix Released
Undecided
Unassigned

Bug Description

When polishing a book, I like to pick "remove unused CSS", to trim down the size of a book. However, if an entire stylesheet is never imported anywhere, then it is left untouched (even though it contains nothing but 'unused' css)

The Quality Check plugin can detect such files, but it can't fix them: similarally, the checking system in the editor can detect them, but won't fix them automatically. It would be nice if Polish Book would automagically handle such files.

Attached is an example book. In this case, the file is 0.1% of the overall size, but that is a best-case-senario for a small book like this.

Revision history for this message
Calum McConnell (themageking) wrote :
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
Revision history for this message
Calum McConnell (themageking) wrote :

Thank you for the fix! :)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments