diff options
author | albert-github <albert.tests@gmail.com> | 2018-12-19 17:12:29 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2018-12-19 17:12:29 (GMT) |
commit | 71b0a3ab98690e20208280c1715807786d56cbc2 (patch) | |
tree | e4421fa17a2fb1fa60eeb300143697ea3838fd8f | |
parent | 449a7e2b4ff114a72be573013558bae19672ebbc (diff) | |
download | Doxygen-71b0a3ab98690e20208280c1715807786d56cbc2.zip Doxygen-71b0a3ab98690e20208280c1715807786d56cbc2.tar.gz Doxygen-71b0a3ab98690e20208280c1715807786d56cbc2.tar.bz2 |
Incorrect closing tags for in page table of contents (docbook)
In the in page table of contents in docbook some closing tags were missing.
-rw-r--r-- | src/definition.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/definition.cpp b/src/definition.cpp index 936565d..e6ceff6 100644 --- a/src/definition.cpp +++ b/src/definition.cpp @@ -1896,6 +1896,14 @@ void Definition::writeToc(OutputList &ol, const LocalToc &localToc) level = nextLevel; } } + if (level > maxLevel) level = maxLevel; + while (level>1 && level <= maxLevel) + { + inLi[level]=FALSE; + ol.writeString("</tocdiv>\n"); + level--; + } + inLi[level]=FALSE; ol.writeString(" </toc>\n"); ol.popGeneratorState(); } |