mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-05-24 15:52:32 -04:00
Fix #474 (Fixing an exception if the CSS contains "@media all;")
This commit is contained in:
@@ -334,7 +334,7 @@ def handle_media_queries(raw):
|
||||
return '@media screen {'
|
||||
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):
|
||||
# First update all internal links that are based on offsets
|
||||
|
||||
Reference in New Issue
Block a user