This commit is contained in:
Kovid Goyal 2009-06-23 17:02:49 -07:00
parent a7956e2c9d
commit e6b41111d7

View File

@ -103,6 +103,7 @@ class MobiMLizer(object):
self.oeb.manifest.remove(item) self.oeb.manifest.remove(item)
def mobimlize_spine(self): def mobimlize_spine(self):
'Iterate over the spine and convert it to MOBIML'
for item in self.oeb.spine: for item in self.oeb.spine:
stylizer = Stylizer(item.data, item.href, self.oeb, self.profile) stylizer = Stylizer(item.data, item.href, self.oeb, self.profile)
body = item.data.find(XHTML('body')) body = item.data.find(XHTML('body'))
@ -136,6 +137,7 @@ class MobiMLizer(object):
return result return result
def mobimlize_content(self, tag, text, bstate, istates): def mobimlize_content(self, tag, text, bstate, istates):
'Convert text content'
if text or tag != 'br': if text or tag != 'br':
bstate.content = True bstate.content = True
istate = istates[-1] istate = istates[-1]