mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-11 09:13:57 -04:00
Fix #910 (Links Lost when from LRF2LRS and LRS2LRF tools are used)
This commit is contained in:
parent
6334cc850c
commit
00c69e02ab
@ -110,6 +110,12 @@ class LrsParser(object):
|
||||
tb.append(self.process_paragraph(item))
|
||||
elif item.name == 'cr':
|
||||
tb.append(CR())
|
||||
elif item.name == 'charbutton': # BookDesigner does this
|
||||
p = Paragraph()
|
||||
tb.append(p)
|
||||
elem = self.text_tag_to_element(item)
|
||||
self.process_text_element(item, elem)
|
||||
p.append(elem)
|
||||
|
||||
def fourth_pass(self):
|
||||
for tag in self.soup.findAll('page'):
|
||||
@ -130,7 +136,6 @@ class LrsParser(object):
|
||||
|
||||
for tag in self.soup.findAll('textblock'):
|
||||
self.process_text_block(tag)
|
||||
|
||||
toc = self.soup.find('toc')
|
||||
if toc:
|
||||
for tag in toc.findAll('toclabel'):
|
||||
|
Loading…
x
Reference in New Issue
Block a user