HTML Search: search snipets should not be folded

This commit is contained in:
Takeshi KOMIYA
2022-06-26 23:19:14 +09:00
parent f280ebb000
commit 50897f0cc2
2 changed files with 2 additions and 1 deletions

View File

@@ -47,6 +47,7 @@ Bugs fixed
``-``, ``~``, and ``**``). Patch by Adam Turner.
* #10460: logging: Always show node source locations as absolute paths.
* HTML Search: HTML tags are displayed as a part of object name
* HTML Search: search snipets should not be folded
* #10520: HTML Theme: Fix use of sidebar classes in ``agogo.css_t``.
* #6679: HTML Theme: Fix inclusion of hidden toctrees in the agogo theme.
* #10566: HTML Theme: Fix enable_search_shortcuts does not work

View File

@@ -519,7 +519,7 @@ const Search = {
let summary = document.createElement("p");
summary.classList.add("context");
summary.innerText = top + text.substr(startWithContext, 240).trim() + tail;
summary.textContent = top + text.substr(startWithContext, 240).trim() + tail;
highlightWords.forEach((highlightWord) =>
_highlightText(summary, highlightWord, "highlighted")