mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
e15ee70a1d
commit
b461f5bc26
@ -56,6 +56,9 @@ class Extract(ODF2XHTML):
|
|||||||
nc = [x for x in r.selectorList if not
|
nc = [x for x in r.selectorList if not
|
||||||
x.selectorText.startswith('.')]
|
x.selectorText.startswith('.')]
|
||||||
if len(r.selectorList) > 1 and not nc:
|
if len(r.selectorList) > 1 and not nc:
|
||||||
|
# Replace all the class selectors with a single class selector
|
||||||
|
# This will be added to the class attribute of all elements
|
||||||
|
# that have one of these selectors.
|
||||||
replace_name = 'c_odt%d'%count
|
replace_name = 'c_odt%d'%count
|
||||||
count += 1
|
count += 1
|
||||||
for sel in r.selectorList:
|
for sel in r.selectorList:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user