Handle empty <a> tags without using BlockSpace so that they can be referred to from the TOC

This commit is contained in:
Kovid Goyal 2007-12-28 00:17:00 +00:00
parent e031c39d2c
commit 484e64f1f4

View File

@ -1268,8 +1268,8 @@ class HTMLConverter(object):
if self.current_block.has_text(): if self.current_block.has_text():
target = self.current_block target = self.current_block
else: else:
target = BlockSpace() target = self.current_block
self.current_page.append(target) self.current_block.must_append = True
self.targets[self.target_prefix+name] = target self.targets[self.target_prefix+name] = target
else: else:
self.process_children(tag, tag_css, tag_pseudo_css) self.process_children(tag, tag_css, tag_pseudo_css)