summaryrefslogtreecommitdiffstats
path: root/src/definition.cpp
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2018-12-19 17:12:29 (GMT)
committeralbert-github <albert.tests@gmail.com>2018-12-19 17:12:29 (GMT)
commit71b0a3ab98690e20208280c1715807786d56cbc2 (patch)
treee4421fa17a2fb1fa60eeb300143697ea3838fd8f /src/definition.cpp
parent449a7e2b4ff114a72be573013558bae19672ebbc (diff)
downloadDoxygen-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.
Diffstat (limited to 'src/definition.cpp')
-rw-r--r--src/definition.cpp8
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();
}