summaryrefslogtreecommitdiffstats
path: root/src/pagedef.cpp
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2019-05-04 09:18:17 (GMT)
committeralbert-github <albert.tests@gmail.com>2019-05-04 09:18:17 (GMT)
commitc2331032caedccd26b0a29f09a7b379c63e96014 (patch)
tree718c61d0d0d729fe237e574ef2e2fd656d2306d4 /src/pagedef.cpp
parentac76b9a7a70b3c828c76442f5977937fcb87811a (diff)
downloadDoxygen-c2331032caedccd26b0a29f09a7b379c63e96014.zip
Doxygen-c2331032caedccd26b0a29f09a7b379c63e96014.tar.gz
Doxygen-c2331032caedccd26b0a29f09a7b379c63e96014.tar.bz2
Incorrect output tag order
When we have the Mardown file: ``` # First heading level 1 Some text ... ``` we get in the HTML file: ``` ... <div class="PageDoc"><div class="header"> <div class="headertitle"> <div class="title">First heading level 1 </div> </div> </div><!--header-->javascript"> <div class="contents"> <div class="textblock"><p>Some text ... </p> </div></div><!-- PageDoc --> </div><!-- contents --> ... ``` 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 `</div>` 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.
Diffstat (limited to 'src/pagedef.cpp')
-rw-r--r--src/pagedef.cpp4
1 files 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();