Fix search
This commit is contained in:
parent
b39627b221
commit
ec49fe15fa
2 changed files with 2 additions and 2 deletions
|
|
@ -44,7 +44,7 @@ def add_span_with_slice(highlighted_string: HighlightedString) -> str:
|
|||
str: The string with added <span> tags.
|
||||
"""
|
||||
# TODO: We are looping through the highlights and only using the last one. We should use all of them.
|
||||
before_span, span_part, after_span = ""
|
||||
before_span, span_part, after_span = "", "", ""
|
||||
|
||||
for txt_slice in highlighted_string.highlights:
|
||||
before_span: str = f"{highlighted_string.value[: txt_slice.start]}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue