View Single Post
Old 09-28-2024, 03:50 PM   #6
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,796
Karma: 146391129
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by foosion View Post
The editor has a function to remove unused CSS rules. Is there a function to remove undefined classes from the html files? If not, is there a reason such a function would not be a good idea?
If there are classes in the HTML that are not used, they will be removed. If they belong to a <div> or <span> the <div> and/or <span> will be left empty. I cannot see the reason for the empty <span> but you may want to keep the empty <div> if it surrounds an <img>.

You can use Diaps Editing Toolbag to remove empty <div> and <span>.
JSWolf is offline   Reply With Quote