summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--doc/commands.doc2
-rw-r--r--src/commentscan.l4
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;