View Single Post
Old 01-25-2016, 12:37 PM   #1
phossler
Wizard
phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.phossler ought to be getting tired of karma fortunes by now.
 
Posts: 1,087
Karma: 447222
Join Date: Jan 2009
Location: Valley Forge, PA, USA
Device: Kindle Paperwhite
Remove unused class attributes

[Remove Unused CSS Rules] has a checkbox option to remove unused class attributes in the HTML.

However, it always cleans up the CSS stylesheets to remove unused class rules also.

Is there any way to just remove unused class attributes in the HTML? (RegEx, another check box options, .....?)

I try to keep my 'standard' stylesheet consistent so even though rules are not used in a given book, I'd like to keep them.

I ePubMerged a group of short stories and there was a lot of variety in how the same type of text was styles. For example, my 'standard' CSS has <p> for 99% of the cases, but it seems like each short story had it's own.
Attached Thumbnails
Click image for larger version

Name:	Capture.JPG
Views:	413
Size:	88.9 KB
ID:	145815  
phossler is offline   Reply With Quote