mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-20 16:36:10 +01:00
Edit Book: Fix an error when merging CSS stylesheets that contain @charset rules
This commit is contained in:
parent
f8d91b7a09
commit
4ef845f592
1 changed files with 1 additions and 1 deletions
|
|
@ -419,7 +419,7 @@ def merge_css(container, names, master):
|
|||
|
||||
# Remove charset rules
|
||||
cr = [r for r in sheet.cssRules if r.type == r.CHARSET_RULE]
|
||||
[sheet.remove(r) for r in cr]
|
||||
[sheet.deleteRule(sheet.cssRules.index(r)) for r in cr]
|
||||
for rule in sheet.cssRules:
|
||||
msheet.add(rule)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue