The highlightTerms() function returns the following string for "h
factor":
<html><<font color="#752571">f</font>ont color="#752571">h</<font
color="#752571">f</font>ont> <font color="#752571">f</font>actor</html>
The problem is that the function does the highlighting in several
passes, iterating over the list of terms to highlight. In that specific
case, "h" is first highlighted, then "f", resulting in the following
sequence:
* after highlighting "h": <font color="#752571">h</font> factor
* after highlighting "f": <<font color="#752571">f</font>ont
color="#752571">h</<font color="#752571">f</font>ont> <font
color="#752571">f</font>actor
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1481206
Title:
"h f" messes up formatting of search suggestions
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/webbrowser-app/+bug/1481206/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs