summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorGrzegorz Adam Hankiewicz <gradha@imap.cc>2014-04-21 23:37:12 +0200
committerGrzegorz Adam Hankiewicz <gradha@imap.cc>2014-04-21 23:37:12 +0200
commit7f090983e92dbaa65977244a48710859c81c7e90 (patch)
tree0ff3ed9d2cc7935a630ebbd13ccd7a09795285b6
parentf70015bee3f8e56e124d0ffe9b31e8cb77327475 (diff)
downloadNim-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.nim2
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: