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,10 +668,12 @@ class HTMLConverter(object, LoggingInterface):
|
|||||||
ascii_text = item.text
|
ascii_text = item.text
|
||||||
if not item.fragment and item.abspath in self.tops:
|
if not item.fragment and item.abspath in self.tops:
|
||||||
self.book.addTocEntry(ascii_text, self.tops[item.abspath])
|
self.book.addTocEntry(ascii_text, self.tops[item.abspath])
|
||||||
else:
|
elif item.abspath:
|
||||||
url = item.abspath+item.fragment
|
url = item.abspath+(item.fragment if item.fragment else '')
|
||||||
if url in self.targets:
|
if url in self.targets:
|
||||||
self.book.addTocEntry(ascii_text, self.targets[url])
|
self.book.addTocEntry(ascii_text, self.targets[url])
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def end_page(self):
|
def end_page(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user