mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
e927c2310e
commit
5115b5d5f2
@ -738,7 +738,7 @@ class Boss(QObject):
|
||||
if editor is None:
|
||||
if use_template is None:
|
||||
data = current_container().raw_data(name)
|
||||
if isbytestring(data):
|
||||
if isbytestring(data) and syntax in {'html', 'css', 'text', 'xml'}:
|
||||
try:
|
||||
data = data.decode('utf-8')
|
||||
except UnicodeDecodeError:
|
||||
|
Loading…
x
Reference in New Issue
Block a user