mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1022 (html2lrf ignores start parameter in <ol> tag)
This commit is contained in:
parent
fd90212e27
commit
e3dd51c3f8
@ -1564,6 +1564,10 @@ class HTMLConverter(object, LoggingInterface):
|
||||
if tagname == 'ol':
|
||||
old_counter = self.list_counter
|
||||
self.list_counter = 1
|
||||
try:
|
||||
self.list_counter = int(tag['start'])
|
||||
except:
|
||||
pass
|
||||
prev_bs = self.current_block.blockStyle
|
||||
self.end_current_block()
|
||||
attrs = self.current_block.blockStyle.attrs
|
||||
|
Loading…
x
Reference in New Issue
Block a user