MOBI Output: Add support for the start attribute on <ol> tags

This commit is contained in:
Kovid Goyal 2011-08-22 10:41:17 -06:00
parent b22f38d71b
commit e48e7932fa

View File

@ -308,6 +308,11 @@ class MobiMLizer(object):
istate = copy.copy(istates[-1])
istate.rendered = False
istate.list_num = 0
if tag == 'ol' and 'start' in elem.attrib:
try:
istate.list_num = int(elem.attrib['start'])-1
except:
pass
istates.append(istate)
left = 0
display = style['display']