mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1075 (trouble with ver 4.8)
This commit is contained in:
parent
016ec341c6
commit
202911f285
@ -668,12 +668,14 @@ class HTMLConverter(object, LoggingInterface):
|
||||
ascii_text = item.text
|
||||
if not item.fragment and item.abspath in self.tops:
|
||||
self.book.addTocEntry(ascii_text, self.tops[item.abspath])
|
||||
else:
|
||||
url = item.abspath+item.fragment
|
||||
elif item.abspath:
|
||||
url = item.abspath+(item.fragment if item.fragment else '')
|
||||
if url in self.targets:
|
||||
self.book.addTocEntry(ascii_text, self.targets[url])
|
||||
|
||||
|
||||
|
||||
|
||||
def end_page(self):
|
||||
"""
|
||||
End the current page, ensuring that any further content is displayed
|
||||
|
Loading…
x
Reference in New Issue
Block a user