diff options
author | albert-github <albert.tests@gmail.com> | 2018-12-19 10:16:11 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2018-12-19 10:16:11 (GMT) |
commit | 15541e75816673fdc51d90820d6620e98b8fcd4b (patch) | |
tree | 39c9a212fdeb2a1322c52e8aab8c86a7ff6cb84a | |
parent | 449a7e2b4ff114a72be573013558bae19672ebbc (diff) | |
download | Doxygen-15541e75816673fdc51d90820d6620e98b8fcd4b.zip Doxygen-15541e75816673fdc51d90820d6620e98b8fcd4b.tar.gz Doxygen-15541e75816673fdc51d90820d6620e98b8fcd4b.tar.bz2 |
issue #6692 XML TOC generation is not backwards-compatible with 1.8.14
In case no options specified with the `\tableofcontents` `Html` and `XML` should be generated and not only `Html` (compatibility).
-rw-r--r-- | doc/commands.doc | 2 | ||||
-rw-r--r-- | src/commentscan.l | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/doc/commands.doc b/doc/commands.doc index c582955..e27cc00 100644 --- a/doc/commands.doc +++ b/doc/commands.doc @@ -2110,7 +2110,7 @@ Make sure you have first read \ref intro "the introduction". this range are considered to be 5. In case no `level` is specified `level` is set to 5 (show all) In case no `option`. is specified \c \\tableofcontents acts as if just the - `option` `HTML` was specified. In case of multiple \c \\tableofcontents + `option` `HTML` and `XML` was specified. In case of multiple \c \\tableofcontents commands in a page the `option`(s) will be used additional to the already specified `option`(s), but only the last `level` of an `option` is valid. diff --git a/src/commentscan.l b/src/commentscan.l index 3af682c..c5349cf 100644 --- a/src/commentscan.l +++ b/src/commentscan.l @@ -3005,7 +3005,9 @@ static bool handleToc(const QCString &, const QCStringList &optList) } if (current->localToc.nothingEnabled()) { - current->localToc.enableHtml(5); // for backward compatibility + // for backward compatibility + current->localToc.enableHtml(5); + current->localToc.enableXml(5); } } return FALSE; |