From 71b0a3ab98690e20208280c1715807786d56cbc2 Mon Sep 17 00:00:00 2001 From: albert-github Date: Wed, 19 Dec 2018 18:12:29 +0100 Subject: Incorrect closing tags for in page table of contents (docbook) In the in page table of contents in docbook some closing tags were missing. --- src/definition.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) 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("\n"); + level--; + } + inLi[level]=FALSE; ol.writeString(" \n"); ol.popGeneratorState(); } -- cgit v0.12