Picks the correct symbol text for theindex embedded tocs.

This commit is contained in:
Grzegorz Adam Hankiewicz 2014-04-20 23:51:13 +02:00
commit b1f26ae542

View file

@ -410,12 +410,13 @@ proc generateDocumentationTOC(entries: seq[TIndexEntry]):
if rawLevel < 1: if rawLevel < 1:
# This is a normal symbol, push it *inside* one level from the last one. # This is a normal symbol, push it *inside* one level from the last one.
levels[L].level = level + 1 levels[L].level = level + 1
# Also, ignore the linkTitle and use directly the keyword.
levels[L].text = entry.keyword
else: else:
# The level did change, update the level indicator. # The level did change, update the level indicator.
level = rawLevel level = rawLevel
levels[L].level = rawLevel levels[L].level = rawLevel
levels[L].text = rawText
levels[L].text = rawText
inc L inc L
# Now generate hierarchical lists based on the precalculated levels. # Now generate hierarchical lists based on the precalculated levels.