mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-18 13:43:47 +01:00
MOBI Output: Add support for the start attribute on <ol> tags
This commit is contained in:
parent
b22f38d71b
commit
e48e7932fa
1 changed files with 5 additions and 0 deletions
|
|
@ -308,6 +308,11 @@ def mobimlize_elem(self, elem, stylizer, bstate, istates,
|
|||
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']
|
||||
|
|
|
|||
Loading…
Reference in a new issue