Quote:
Originally Posted by theducks
 Might not be working the way you thought (1.46 x64) if I understand the rules. Sorts All CSS in book? (actually, i would prefer the current only, but User PI may be limited)
2@ CSS: page_styles, styleesheet
I ran the PI, it showed changes made to Pages (not obvious, only @pages)
the other: stylesheet (the one that could use a sort, did not change. old styl calibre ASCII sorted styles)
Did I use incorrectly?
|
No, I don't think so. As I said, the plugin is dumb. It simple finds all the stylesheet files and sort them. And because of the way it does this, it does a beautify of the CSS at the same time. What that means is if a beautify has already been run a file and the rules are already sorted, there won't be a change. And for a file with only one rule in it, it will be changed as if a beautify was run.
I'll probably add some extra function. I was thinking of prompting with a list of stylesheets to sort, but I like the idea of restricting it to the current file as Kovid suggests. Plus handling the specificity and rules without a specifier.