mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
8fff3d58c0
commit
a668e60944
@ -169,11 +169,11 @@ class Stylizer(object):
|
||||
if not matches and class_sel_pat.match(text):
|
||||
found = False
|
||||
for x in tree.xpath('//*[@class]'):
|
||||
if x.get('class').lower() == text[1:].lower():
|
||||
if '.'+x.get('class').lower() in text.lower():
|
||||
matches.append(x)
|
||||
found = True
|
||||
if found:
|
||||
self.logger.warn('Ignoring case mismatch for CSS selector: %s in %s'
|
||||
self.logger.warn('Ignoring case mismatches for CSS selector: %s in %s'
|
||||
%(text, item.href))
|
||||
for elem in matches:
|
||||
self.style(elem)._update_cssdict(cssdict)
|
||||
|
@ -482,7 +482,7 @@ class Wizard(QWizard):
|
||||
self.device_page = DevicePage()
|
||||
self.library_page = LibraryPage()
|
||||
self.finish_page = FinishPage()
|
||||
bt = self.buttonText(self.FinishButton)
|
||||
bt = unicode(self.buttonText(self.FinishButton))
|
||||
t = unicode(self.finish_page.finish_text.text())
|
||||
self.finish_page.finish_text.setText(t%bt)
|
||||
self.kindle_page = KindlePage()
|
||||
|
Loading…
x
Reference in New Issue
Block a user