lib/epub/searcher/xhtml.rb in epub-parser-0.3.6 vs lib/epub/searcher/xhtml.rb in epub-parser-0.3.7
- old
+ new
@@ -85,9 +85,10 @@
content << alt
else
# TODO: Consider block level elements
content_length = content.length
sub_indices, sub_content = build_indices(child)
+ # TODO: Pass content_length and child_step to build_indices and remove this block
sub_indices.each_pair do |sub_pos, child_steps|
indices[content_length + sub_pos] = [child_step] + child_steps
end
content << sub_content
end