From 2986d2fec0b3487f615cfbd9b264509d9f0d30bc Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 20 May 2024 20:39:33 +0530 Subject: [PATCH] ... --- src/pyj/read_book/resources.pyj | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pyj/read_book/resources.pyj b/src/pyj/read_book/resources.pyj index 73021ad28b..c854af7642 100644 --- a/src/pyj/read_book/resources.pyj +++ b/src/pyj/read_book/resources.pyj @@ -409,7 +409,8 @@ def text_from_serialized_html(data, get_anchor_offset_map): tag_map = serialized_data.tag_map ans = v'[]' no_visit = {'script': True, 'style': True, 'title': True, 'head': True} - ignore_text = {'img': True, 'math': True, 'rt': true, 'rp': True, 'rtc': True} + ignore_text = {'img': True, 'math': True, 'rt': True, 'rp': True, 'rtc': True} + ignore_text if tag_map: stack = v'[[serialized_data.tree[2], False]]' else: