mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-01 06:38:29 +02:00
Improved search highlighting
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user