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():
|
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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user