mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Content server viewer: Fix a regression in the previous release that broke searching. Fixes #2067128 [[Content Server Viewer] In-book search fails in version 7.11](https://bugs.launchpad.net/calibre/+bug/2067128)
This commit is contained in:
parent
41bb502022
commit
f3b35c318f
@ -412,12 +412,12 @@ def text_from_serialized_html(data, get_anchor_offset_map):
|
||||
ignore_text = {'img': True, 'math': True, 'rt': True, 'rp': True, 'rtc': True}
|
||||
ignore_text
|
||||
if tag_map:
|
||||
stack = v'[[serialized_data.tree[2], False]]'
|
||||
stack = v'[[serialized_data.tree[2], false]]'
|
||||
else:
|
||||
stack = v'[]'
|
||||
for child in serialized_data.tree.c:
|
||||
if child.n is 'body':
|
||||
stack.push(v'[child, False]')
|
||||
stack.push(v'[child, false]')
|
||||
anchor_offset_map = {}
|
||||
text_pos = 0
|
||||
while stack.length:
|
||||
|
Loading…
x
Reference in New Issue
Block a user