Quote:
Originally Posted by davidfor
I didn't think of that at all when I started. It was only after rereading one of the posts that I thought
I haven't thought about sort algorithms for a VERY long time. I'll have a think of these options.
In the meantime, I have added the single file sort that has been suggested. The toolbar button now has a menu option "Sort current file". When that is checked, pressing the button will sort the currently opened file if it is a stylesheet. If it is not checked, it will sort all of them as it does now.
|
Is this from the latest SortCSS PI (on 1.203)?
Spoiler:
calibre, version 1.203.1
ERROR: Unhandled exception: <b>UnboundLocalError</b>:local variable 'ac' referenced before assignment
calibre 1.203.1 isfrozen: True is64bit: False
Windows-XP-5.1.2600-SP3 Windows ('32bit', 'WindowsPE')
('Windows', 'XP', '5.1.2600')
Python 2.7.8
Windows: ('XP', '5.1.2600', 'SP3', 'Multiprocessor Free')
Successfully initialized third party plugins: EpubMerge && Generate Cover && Count Pages && Search The Internet && Open With && Quality Check && Import List && Manage Series && Find Duplicates && Fantastic Fiction && Sort CSS && Fantastic Fiction Adults && EpubSplit && Resize Cover && Modify ePub
Traceback (most recent call last):
File "site-packages\calibre\gui2\tweak_book\preferences.py", line 452, in bar_changed
File "site-packages\calibre\gui2\tweak_book\preferences.py", line 447, in build_lists
UnboundLocalError: local variable 'ac' referenced before assignment