mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix a regression in 0.8.51 that caused conversion to HTMLZ to not have any CSS
This commit is contained in:
parent
5c61a2da48
commit
9b21272e46
@ -120,11 +120,10 @@ class OEB2HTML(object):
|
|||||||
el.attrib['id'] = self.get_link_id(page.href, el.attrib['id'])[1:]
|
el.attrib['id'] = self.get_link_id(page.href, el.attrib['id'])[1:]
|
||||||
|
|
||||||
def get_css(self, oeb_book):
|
def get_css(self, oeb_book):
|
||||||
css = u''
|
css = b''
|
||||||
for item in oeb_book.manifest:
|
for item in oeb_book.manifest:
|
||||||
if item.media_type == 'text/css':
|
if item.media_type == 'text/css':
|
||||||
css = item.data.cssText
|
css += item.data.cssText + b'\n\n'
|
||||||
break
|
|
||||||
return css
|
return css
|
||||||
|
|
||||||
def prepare_string_for_html(self, raw):
|
def prepare_string_for_html(self, raw):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user