View Single Post
Old 10-16-2020, 08:03 AM   #1
Thasaidon
Hedge Wizard
Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.
 
Thasaidon's Avatar
 
Posts: 802
Karma: 19999999
Join Date: May 2011
Location: UK/Philippines
Device: Kobo Touch, Nook Simple
Question Merge Identical CSS Rules

I do not know if I have missed something (again).

I was editing an ePub yesterday The html was awful (stupidly convoluted) and I was simplifying it. As I was going through the "stylesheet", I noticed a lot of the defined styles were identical except for their names.

My immediate thought was "Doesn't the Removed Unused CSS Rules" fix this". I had run it on opening the ePub so I knew the option to Merge Identical CSS Rules option was ticked.

To check matters I created a dummy ePub which had several dozen pairs of styles which were identical except for their names. I also created an empty paragraph for each CSS style addimg class="dunnystylename" so each style was mentioned in the text.

I then ran the plugin. NONE of the identical CSS styles was merged.

I then repeated the operation with the Merge box unticked (just in case) and got the same result.

Has this feature been depreciated, is it a bug or is it my setop?

I am on Windows 10 Enterprise - 64bit, calibre version 5.1

Last edited by Thasaidon; 10-16-2020 at 08:05 AM. Reason: typo
Thasaidon is offline   Reply With Quote