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.
|
This release doesn't appear at the toolbar, and when I try to add it, I have the following error:
Spoiler:
calibre, version 1.46.0
ERROR: Excepción no considerada: <b>UnboundLocalError</b>:local variable 'ac' referenced before assignment
calibre 1.46 isfrozen: True is64bit: False
Windows-7-6.1.7600 Windows ('32bit', 'WindowsPE')
32bit process running on 64bit windows
('Windows', '7', '6.1.7600')
Python 2.7.5
Windows: ('7', '6.1.7600', '', 'Multiprocessor Free')
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
And I only have an option: SortCss, which applies only to a current file.
BTW, if the styles are defined as p.tx1 instead of .tx1 into the css file, there's an error too at the plugin.