diff options
author | Grzegorz Adam Hankiewicz <gradha@imap.cc> | 2014-04-21 23:37:12 +0200 |
---|---|---|
committer | Grzegorz Adam Hankiewicz <gradha@imap.cc> | 2014-04-21 23:37:12 +0200 |
commit | 7f090983e92dbaa65977244a48710859c81c7e90 (patch) | |
tree | 0ff3ed9d2cc7935a630ebbd13ccd7a09795285b6 | |
parent | f70015bee3f8e56e124d0ffe9b31e8cb77327475 (diff) | |
download | Nim-7f090983e92dbaa65977244a48710859c81c7e90.tar.gz |
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.
-rw-r--r-- | lib/packages/docutils/rstgen.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/packages/docutils/rstgen.nim b/lib/packages/docutils/rstgen.nim index 860fdc618..46788f2ea 100644 --- a/lib/packages/docutils/rstgen.nim +++ b/lib/packages/docutils/rstgen.nim @@ -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: |