mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 04:35:57 +00:00
Improved search highlighting
This commit is contained in:
parent
8225639a6f
commit
ba611dd78c
1 changed files with 3 additions and 1 deletions
|
@ -3002,7 +3002,9 @@ public class HtmlHelper {
|
|||
span.attr("style"),
|
||||
"font-size:larger; background-color:" + encodeWebColor(color)
|
||||
));
|
||||
span.text(text.substring(start, end));
|
||||
span.text(tnode.getWholeText().length() == text.length()
|
||||
? tnode.getWholeText().substring(start, end)
|
||||
: text.substring(start, end));
|
||||
holder.appendChild(span);
|
||||
|
||||
prev = end;
|
||||
|
|
Loading…
Reference in a new issue