summaryrefslogtreecommitdiffstats
path: root/templates/html/htmljssearchindex.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/html/htmljssearchindex.tpl')
-rw-r--r--templates/html/htmljssearchindex.tpl10
1 files changed, 4 insertions, 6 deletions
diff --git a/templates/html/htmljssearchindex.tpl b/templates/html/htmljssearchindex.tpl
index a16fa4f..c963434 100644
--- a/templates/html/htmljssearchindex.tpl
+++ b/templates/html/htmljssearchindex.tpl
@@ -1,15 +1,13 @@
{# input: si symbolIndex #}
var searchData =
[
-{% for group in si.symbolGroups %}['{{ group.id }}',['{{ group.name }}',
-{% for sym in group.symbols %}
-{% spaceless %}
-['{{ sym.relPath }}{{ sym.fileName }}{{ config.HTML_FILE_EXTENSION }}{% if sym.anchor %}#{{ sym.anchor }}{% endif %}',
+{% for group in si.symbolGroups %} ['{{ group.id }}_{{ symbolCount }}',['{{ group.name }}',{% spaceless %}{% for sym in group.symbols %}['{{ sym.relPath }}{{ sym.fileName }}{{ config.HTML_FILE_EXTENSION }}{% if sym.anchor %}#{{ sym.anchor }}{% endif %}',
{% if not config.EXT_LINKS_IN_WINDOW %}1{% else %}0{% endif %},
-'{{ sym.scope|nowrap }}']
-{% endspaceless %}
+'{{ sym.scope|nowrap|escape }}']
{% if not forloop.last %},{% endif %}
{% endfor %}
+{% update symbolCount=symbolCount+1 %}
+{% endspaceless %}
]]{% if not forloop.last %},{% endif %}
{% endfor %}
];