mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Handle empty <a> tags without using BlockSpace so that they can be referred to from the TOC
This commit is contained in:
parent
e031c39d2c
commit
484e64f1f4
@ -1268,8 +1268,8 @@ class HTMLConverter(object):
|
||||
if self.current_block.has_text():
|
||||
target = self.current_block
|
||||
else:
|
||||
target = BlockSpace()
|
||||
self.current_page.append(target)
|
||||
target = self.current_block
|
||||
self.current_block.must_append = True
|
||||
self.targets[self.target_prefix+name] = target
|
||||
else:
|
||||
self.process_children(tag, tag_css, tag_pseudo_css)
|
||||
|
Loading…
x
Reference in New Issue
Block a user