From b461f5bc26030f3f8ce43d02facc3914ade45c5e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 4 May 2011 20:30:34 -0600 Subject: [PATCH] ... --- src/calibre/ebooks/odt/input.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/calibre/ebooks/odt/input.py b/src/calibre/ebooks/odt/input.py index 10553dac2b..e724acb981 100644 --- a/src/calibre/ebooks/odt/input.py +++ b/src/calibre/ebooks/odt/input.py @@ -56,6 +56,9 @@ class Extract(ODF2XHTML): nc = [x for x in r.selectorList if not x.selectorText.startswith('.')] 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 count += 1 for sel in r.selectorList: