This commit is contained in:
Kovid Goyal 2011-05-04 20:30:34 -06:00
parent e15ee70a1d
commit b461f5bc26

View File

@ -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: