mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
59b2fad3a3
commit
a9d6d0969e
@ -130,8 +130,8 @@ class KF8Writer(object):
|
|||||||
for item in self.oeb.manifest:
|
for item in self.oeb.manifest:
|
||||||
if item.media_type in OEB_STYLES:
|
if item.media_type in OEB_STYLES:
|
||||||
data = self.data(item).cssText
|
data = self.data(item).cssText
|
||||||
self.flows.append(force_unicode(data, 'utf-8'))
|
|
||||||
sheets[item.href] = len(self.flows)
|
sheets[item.href] = len(self.flows)
|
||||||
|
self.flows.append(force_unicode(data, 'utf-8'))
|
||||||
|
|
||||||
for item in self.oeb.spine:
|
for item in self.oeb.spine:
|
||||||
root = self.data(item)
|
root = self.data(item)
|
||||||
@ -158,8 +158,8 @@ class KF8Writer(object):
|
|||||||
inlines[raw].append(repl)
|
inlines[raw].append(repl)
|
||||||
|
|
||||||
for raw, elems in inlines.iteritems():
|
for raw, elems in inlines.iteritems():
|
||||||
self.flows.append(raw)
|
|
||||||
idx = to_ref(len(self.flows))
|
idx = to_ref(len(self.flows))
|
||||||
|
self.flows.append(raw)
|
||||||
for link in elems:
|
for link in elems:
|
||||||
link.set('href', 'kindle:flow:%s?mime=text/css'%idx)
|
link.set('href', 'kindle:flow:%s?mime=text/css'%idx)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user