Quote:
Originally Posted by icallaci
I hesitate to ask for this (it may be my OCD showing), but would it be possible for Modify ePub to have an option to clean up the CSS file (put classes in alphabetical order, make the formatting/indenting/spacing consistent)? Some stylesheets are such a mess that I can't scan them easily. Sometimes I miss classes with identical names--some are duplicates but some are not, and if they were in alphabetical order, at least I could view them together and consolidate or remove duplicates. Sometimes individual properties are all on a single line, sometimes they are on separate lines, sometimes a property has a colon plus a space after the property name, sometimes it has a colon with no space... These things turn a simple search into a regex adventure, which is a pain. Calibre's conversion process handles most of these, but I'd rather not deal with the side effects of conversion. Anyway, just a suggestion, and thank you for the work already done in this essential plugin.
|
You can 'beautify' just the CSS with ebook-edit (

if you are looking at the CSS, you are probably editing something. 1 click and it is pretty-er).
Sigil has the reformat CSS right-click option. Both make the CSS have a standard layout (colon space), but a
\s* between the colon and the argument will take care of the REGEX search problem
Neither sorts. Both have clean unused styles.