From f3b35c318fe36c0ba0fed53d1f83a54259f4f73c Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 25 May 2024 09:52:36 +0530 Subject: [PATCH] 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) --- src/pyj/read_book/resources.pyj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pyj/read_book/resources.pyj b/src/pyj/read_book/resources.pyj index c854af7642..8d173948f5 100644 --- a/src/pyj/read_book/resources.pyj +++ b/src/pyj/read_book/resources.pyj @@ -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: