mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 09:43:48 +02:00
py3: Fix transform css test dialog
This commit is contained in:
parent
8ea5ddbbaa
commit
fda49f12d5
1 changed files with 4 additions and 1 deletions
|
|
@ -233,7 +233,10 @@ def value(self):
|
|||
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…
Reference in a new issue