mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #474 (Fixing an exception if the CSS contains "@media all;")
This commit is contained in:
parent
5e8402c5ef
commit
8fce6f04ef
@ -334,7 +334,7 @@ def handle_media_queries(raw):
|
|||||||
return '@media screen {'
|
return '@media screen {'
|
||||||
return m.group()
|
return m.group()
|
||||||
|
|
||||||
return re.sub(r'@media\s[^{]*{', replace, raw)
|
return re.sub(r'@media\s[^{;]*?[{;]', replace, raw)
|
||||||
|
|
||||||
def expand_mobi8_markup(mobi8_reader, resource_map, log):
|
def expand_mobi8_markup(mobi8_reader, resource_map, log):
|
||||||
# First update all internal links that are based on offsets
|
# First update all internal links that are based on offsets
|
||||||
|
Loading…
x
Reference in New Issue
Block a user