mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
2d6ad84690
commit
5134d7568c
@ -45,6 +45,9 @@ def run_checks(container):
|
|||||||
errors.extend(run_checkers(check_xml_parsing, html_items))
|
errors.extend(run_checkers(check_xml_parsing, html_items))
|
||||||
errors.extend(run_checkers(check_raster_images, raster_images))
|
errors.extend(run_checkers(check_raster_images, raster_images))
|
||||||
|
|
||||||
|
if errors:
|
||||||
|
return errors
|
||||||
|
|
||||||
# cssutils is not thread safe
|
# cssutils is not thread safe
|
||||||
for name, mt, raw in stylesheets:
|
for name, mt, raw in stylesheets:
|
||||||
if not raw:
|
if not raw:
|
||||||
@ -52,9 +55,6 @@ def run_checks(container):
|
|||||||
continue
|
continue
|
||||||
errors.extend(check_css_parsing(name, raw))
|
errors.extend(check_css_parsing(name, raw))
|
||||||
|
|
||||||
if errors:
|
|
||||||
return errors
|
|
||||||
|
|
||||||
for name, mt, raw in html_items + xml_items:
|
for name, mt, raw in html_items + xml_items:
|
||||||
errors.extend(check_encoding_declarations(name, container))
|
errors.extend(check_encoding_declarations(name, container))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user