mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Viewer: Fix error while viewing books with a comment after a <meta> tag. Fixes #1847977 [strange problem with epub in viewer 4](https://bugs.launchpad.net/calibre/+bug/1847977)
This commit is contained in:
parent
989e4de74c
commit
12485fef82
@ -613,7 +613,8 @@ def html_as_dict(root):
|
||||
tail = getattr(child, 'tail', None)
|
||||
if tail:
|
||||
if prev_child_node is None:
|
||||
parent_node = tags[node[-1]]
|
||||
parent_node = node[-1]
|
||||
parent_node = tags[parent_node]
|
||||
parent_node['x'] = parent_node.get('x', '') + tail
|
||||
else:
|
||||
prev_child_node['l'] = prev_child_node.get('l', '') + tail
|
||||
|
Loading…
x
Reference in New Issue
Block a user