Adds colon to symbols in the index.

The colon makes it easier to get a unique match searching for symbols
using words which may also appear as substrings or elsewhere.
This commit is contained in:
Grzegorz Adam Hankiewicz
2014-04-21 23:37:12 +02:00
parent f70015bee3
commit 7f090983e9

View File

@@ -406,7 +406,7 @@ proc generateSymbolIndex(symbols: seq[TIndexEntry]): string =
result = ""
var i = 0
while i < symbols.len:
result.addf("<dt><span>$1</span></dt><ul class=\"simple\"><dd>\n",
result.addf("<dt><span>$1:</span></dt><ul class=\"simple\"><dd>\n",
[symbols[i].keyword])
var j = i
while j < symbols.len and symbols[i].keyword == symbols[j].keyword: