Fix #1075 (trouble with ver 4.8)

This commit is contained in:
Kovid Goyal 2008-09-27 12:05:12 -07:00
parent 016ec341c6
commit 202911f285

View File

@ -668,12 +668,14 @@ 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):
""" """
End the current page, ensuring that any further content is displayed End the current page, ensuring that any further content is displayed