Finish up viewer search

This commit is contained in:
Kovid Goyal 2017-01-14 20:28:24 +05:30
parent f0be3b99a5
commit 19a79f3585
2 changed files with 3 additions and 1 deletions

View File

@ -269,7 +269,7 @@ def text_from_serialized_html(data):
serialized_data = JSON.parse(data) serialized_data = JSON.parse(data)
tag_map = serialized_data.tag_map tag_map = serialized_data.tag_map
ans = v'[]' ans = v'[]'
stack = v'[tree[2]]' stack = v'[serialized_data.tree[2]]'
ignore_text = {'script':True, 'style':True} ignore_text = {'script':True, 'style':True}
while stack.length: while stack.length:
node = stack.pop() node = stack.pop()

View File

@ -95,3 +95,5 @@ def find_in_spine(names, book, db, text, proceed):
db.get_file(book, name, got_one) db.get_file(book, name, got_one)
else: else:
proceed(None) proceed(None)
do_one()