Fix #4314 (mobi generation error)

This commit is contained in:
Kovid Goyal 2010-01-05 20:02:57 -07:00
parent 8bfffc74e2
commit 3dd8767ecb
2 changed files with 94 additions and 94 deletions

View File

@ -245,7 +245,7 @@ class MobiMLizer(object):
bgcolor=istate.bgcolor) bgcolor=istate.bgcolor)
if istate.fgcolor != 'black': if istate.fgcolor != 'black':
inline = etree.SubElement(inline, XHTML('font'), inline = etree.SubElement(inline, XHTML('font'),
color=istate.fgcolor) color=unicode(istate.fgcolor))
if istate.strikethrough: if istate.strikethrough:
inline = etree.SubElement(inline, XHTML('s')) inline = etree.SubElement(inline, XHTML('s'))
bstate.inline = inline bstate.inline = inline