Quote:
When you ask calibre to remove unused code, I think it leaves alone any line with multiple items, so long as at least one of them is being used:
div, ol, p, ul, .class1, .class2 {whatever}
So far as I can tell, it will not remove any of the above so long as one of them is in the book. It would be great if it could remove the dead-wood items from a list.
|
I think I may have already posted this, but you can unstack those selectors in the CSS with a regular expression:
--unstack selectors so Calibre "Remove unused rules" tool can be used:
Search:
([.]?[^ ]+),\s([^{]+)(\{[^}]+\})
Replace:
\1 \3\n\n\2\3
'Replace All' until 0 returns.