This commit is contained in:
Kovid Goyal 2022-01-16 04:33:31 +05:30
parent 8841a9201b
commit 8760b3cf71
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -173,6 +173,7 @@ def searchable_text_for_name(name):
for child in serialized_data['tree']['c']:
if child.get('n') == 'body':
stack.append(child)
# the JS code does not add the tail of body tags to flat text
removed_tails.append((child.pop('l', None), child))
ignore_text = {'script', 'style', 'title'}
text_pos = 0