mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
MOBI Output: Add support for the start attribute on <ol> tags
This commit is contained in:
parent
b22f38d71b
commit
e48e7932fa
@ -308,6 +308,11 @@ class MobiMLizer(object):
|
|||||||
istate = copy.copy(istates[-1])
|
istate = copy.copy(istates[-1])
|
||||||
istate.rendered = False
|
istate.rendered = False
|
||||||
istate.list_num = 0
|
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)
|
istates.append(istate)
|
||||||
left = 0
|
left = 0
|
||||||
display = style['display']
|
display = style['display']
|
||||||
|
Loading…
x
Reference in New Issue
Block a user