From c2331032caedccd26b0a29f09a7b379c63e96014 Mon Sep 17 00:00:00 2001 From: albert-github Date: Sat, 4 May 2019 11:18:17 +0200 Subject: Incorrect output tag order When we have the Mardown file: ``` # First heading level 1 Some text ... ``` we get in the HTML file: ``` ...
First heading level 1
javascript">

Some text ...

... ``` Here we see that the `PageDoc` is closed before the `Contents` although the `PageDoc` was opened before the `Contents`. In this constellation it doesn't give problems as both translate to `` tag and in other output formats nothing is outputted, but in case in another format something is outputted this might lead to problems also the comment is now so that is indicates the error. --- src/pagedef.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pagedef.cpp b/src/pagedef.cpp index 8272cf6..9f11eb0 100644 --- a/src/pagedef.cpp +++ b/src/pagedef.cpp @@ -268,16 +268,16 @@ void PageDefImpl::writeDocumentation(OutputList &ol) } writePageDocumentation(ol); + ol.endContents(); ol.endPageDoc(); if (generateTreeView && getOuterScope()!=Doxygen::globalScope && !Config_getBool(DISABLE_INDEX)) { - ol.endContents(); endFileWithNavPath(getOuterScope(),ol); } else { - endFile(ol); + endFile(ol,FALSE,TRUE); } ol.popGeneratorState(); -- cgit v0.12