summaryrefslogtreecommitdiffstats
path: root/src/definition.cpp
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2018-12-19 16:43:45 (GMT)
committeralbert-github <albert.tests@gmail.com>2018-12-19 16:43:45 (GMT)
commit9ef709e59187f18229fce1f9443547ad93f17be0 (patch)
tree2e145ac089a5a85249b8589737b024f9f8e1f781 /src/definition.cpp
parent449a7e2b4ff114a72be573013558bae19672ebbc (diff)
downloadDoxygen-9ef709e59187f18229fce1f9443547ad93f17be0.zip
Doxygen-9ef709e59187f18229fce1f9443547ad93f17be0.tar.gz
Doxygen-9ef709e59187f18229fce1f9443547ad93f17be0.tar.bz2
Incorrect closing tags for in page table of contents (XHTML)
In case of using the levels in the in page table of contents in XHTML some closing tags wer missing.
Diffstat (limited to 'src/definition.cpp')
-rw-r--r--src/definition.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/definition.cpp b/src/definition.cpp
index 936565d..fd0b68f 100644
--- a/src/definition.cpp
+++ b/src/definition.cpp
@@ -1837,6 +1837,7 @@ void Definition::writeToc(OutputList &ol, const LocalToc &localToc)
level = nextLevel;
}
}
+ if (level > maxLevel) level = maxLevel;
while (level>1 && level <= maxLevel)
{
if (inLi[level]) ol.writeString("</li>\n");