Fix #1022 (html2lrf ignores start parameter in <ol> tag)

This commit is contained in:
Kovid Goyal 2008-09-17 14:32:02 -07:00
parent fd90212e27
commit e3dd51c3f8

View File

@ -1564,6 +1564,10 @@ class HTMLConverter(object, LoggingInterface):
if tagname == 'ol': if tagname == 'ol':
old_counter = self.list_counter old_counter = self.list_counter
self.list_counter = 1 self.list_counter = 1
try:
self.list_counter = int(tag['start'])
except:
pass
prev_bs = self.current_block.blockStyle prev_bs = self.current_block.blockStyle
self.end_current_block() self.end_current_block()
attrs = self.current_block.blockStyle.attrs attrs = self.current_block.blockStyle.attrs