View Single Post
Old 07-26-2014, 12:14 AM   #65
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by theducks View Post
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.
davidfor is offline   Reply With Quote