Remove unused CSS leaves unreferenced stylesheets intact
Bug #1939469 reported by
Calum McConnell
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.
To post a comment you must log in.
Fixed in branch master. The fix will be in the next release. calibre is usually released every alternate Friday.
status fixreleased