mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-03-01 23:35:00 +01:00
...
This commit is contained in:
parent
893f6bf83d
commit
0d5366ecc1
1 changed files with 5 additions and 1 deletions
|
|
@ -214,7 +214,11 @@ def mobimlize_content(self, tag, text, bstate, istates):
|
|||
if tag in CONTENT_TAGS:
|
||||
bstate.inline = para
|
||||
pstate = bstate.istate = None
|
||||
etree.SubElement(para, XHTML(tag), attrib=istate.attrib)
|
||||
try:
|
||||
etree.SubElement(para, XHTML(tag), attrib=istate.attrib)
|
||||
except:
|
||||
print 'Invalid subelement:', para, tag, istate.attrib
|
||||
raise
|
||||
elif tag in TABLE_TAGS:
|
||||
para.attrib['valign'] = 'top'
|
||||
if istate.ids:
|
||||
|
|
|
|||
Loading…
Reference in a new issue