diff options
author | albert-github <albert.tests@gmail.com> | 2018-05-17 11:25:39 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2018-05-17 11:25:39 (GMT) |
commit | 9277e1466f91d7b2d4190b4e55d6e7b9b5e3962d (patch) | |
tree | be9c98322b7f7e012ff4e7186c3a4f39f8fb31ed | |
parent | df0d9c3df44dbce633c38e99d33be4de06706f7b (diff) | |
download | Doxygen-9277e1466f91d7b2d4190b4e55d6e7b9b5e3962d.zip Doxygen-9277e1466f91d7b2d4190b4e55d6e7b9b5e3962d.tar.gz Doxygen-9277e1466f91d7b2d4190b4e55d6e7b9b5e3962d.tar.bz2 |
Bug 782437 - Annotated function parameter generates <dt> warning in todo list
Problems are cause by the annotation in the arguments (i.e. @myAnnotation) and the fact that the function prototype is used as title for the todo list.
Escaping the @ (by means of @@) solves this problem.
-rw-r--r-- | src/reflist.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/reflist.cpp b/src/reflist.cpp index 5a80b19..e60bcc6 100644 --- a/src/reflist.cpp +++ b/src/reflist.cpp @@ -21,6 +21,7 @@ #include "util.h" #include "ftextstream.h" #include "definition.h" +#include <qregexp.h> /*! Create a list of items that are cross referenced with documentation blocks * @param listName String representing the name of the list. @@ -169,7 +170,7 @@ void RefList::generatePage() // write declaration in case a function with arguments if (!item->args.isEmpty()) { - doc += item->args; + doc += item->args.replace(QRegExp("@"),"@@"); } doc += "</dt><dd> "; doc += item->text; |