1
0
mirror of https://github.com/gryf/ebook-converter.git synced 2026-04-19 20:53:35 +02:00

Re added (probably) right formating codes.

This commit is contained in:
2021-06-22 22:06:09 +02:00
parent 546cc26652
commit 84abd62a61
18 changed files with 39 additions and 58 deletions

View File

@@ -957,11 +957,11 @@ class Manifest(object):
def _fetch_css(self, path):
hrefs = self.oeb.manifest.hrefs
if path not in hrefs:
self.oeb.logger.warning('CSS import of missing file %s', path)
self.oeb.logger.warning('CSS import of missing file %r', path)
return (None, None)
item = hrefs[path]
if item.media_type not in OEB_STYLES:
self.oeb.logger.warning('CSS import of non-CSS file %s', path)
self.oeb.logger.warning('CSS import of non-CSS file %r', path)
return (None, None)
data = item.data.cssText
enc = None if isinstance(data, str) else 'utf-8'