From f7a05140593d854955151e4286205ef1f908e07b Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Sun, 4 Oct 2015 16:18:14 +0200 Subject: [PATCH] Improved list of files in htmlhelp.hhp --- templates/html/htmlhelpindexhhp.tpl | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/templates/html/htmlhelpindexhhp.tpl b/templates/html/htmlhelpindexhhp.tpl index 545150932ce..15aba916a7f 100644 --- a/templates/html/htmlhelpindexhhp.tpl +++ b/templates/html/htmlhelpindexhhp.tpl @@ -14,10 +14,9 @@ Title={{ config.PROJECT_NAME }} main="My Project","index.hhc","index.hhk","index{{ config.HTML_FILE_EXTENSION }}","index{{ config.HTML_FILE_EXTENSION }}",,,,,0x23520,,0x{% if config.BINARY_TOC %}7{% else %}1{% endif %}0387e,,,,,,,,0 [FILES] -{% recursetree index.nav %} -{% if not node.isReference %}{{ node.file }}{{ config.HTML_FILE_EXTENSION }}{% endif %} -{{ children }} -{% endrecursetree %} +{% for node in index.nav|flatten|listsort:config.HTML_FILE_EXTENSION|prepend:'{{file}}' %} +{% if not node.isReference and node.file %}{{ node.file }}{{ config.HTML_FILE_EXTENSION }}{% endif %} +{% endfor %} tab_a.png tab_b.png tab_h.png