mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
f83b1a5720
commit
9ab23594ee
@ -221,7 +221,7 @@ def css_data(container, book_locale):
|
|||||||
for rule, loc_map in rule_map.iteritems():
|
for rule, loc_map in rule_map.iteritems():
|
||||||
la = tuple(CSSFileMatch(name, tuple(locations), numeric_sort_key(name)) for name, locations in loc_map.iteritems() if locations)
|
la = tuple(CSSFileMatch(name, tuple(locations), numeric_sort_key(name)) for name, locations in loc_map.iteritems() if locations)
|
||||||
count = sum(len(fm.locations) for fm in la)
|
count = sum(len(fm.locations) for fm in la)
|
||||||
ans.append(CSSEntry(rule, count, la, numeric_sort_key(rule)))
|
ans.append(CSSEntry(rule, count, la, numeric_sort_key(rule.selector)))
|
||||||
|
|
||||||
return ans
|
return ans
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user