Skip to content

Commit

Permalink
Content server viewer: Fix a regression in the previous release that …
Browse files Browse the repository at this point in the history
…broke searching. Fixes #2067128 [[Content Server Viewer] In-book search fails in version 7.11](https://bugs.launchpad.net/calibre/+bug/2067128)
  • Loading branch information
kovidgoyal committed May 25, 2024
1 parent 41bb502 commit f3b35c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pyj/read_book/resources.pyj
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f3b35c3

Please sign in to comment.