mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
py3: Fix transform css test dialog
This commit is contained in:
parent
8ea5ddbbaa
commit
fda49f12d5
@ -233,7 +233,10 @@ class Tester(Dialog): # {{{
|
||||
def do_test(self):
|
||||
decl = safe_parser().parseString(self.value)
|
||||
transform_sheet(self.rules, decl)
|
||||
self.result.load_text('/* %s */\n\n%s' % (_('Resulting stylesheet'), decl.cssText), 'css')
|
||||
css = decl.cssText
|
||||
if isinstance(css, bytes):
|
||||
css = css.decode('utf-8')
|
||||
self.result.load_text('/* %s */\n\n%s' % (_('Resulting stylesheet'), css), 'css')
|
||||
|
||||
def sizeHint(self):
|
||||
return QSize(800, 600)
|
||||
|
Loading…
x
Reference in New Issue
Block a user