From bf793310d5d493d19b6cb8840151ab38659dd58f Mon Sep 17 00:00:00 2001 From: albert-github Date: Thu, 17 May 2018 19:21:39 +0200 Subject: Bug 759063 - Macros (@test, @todo, etc) used with PHP namespaces causes illegal command warning Illegal command is in case cause by the fact that the namespace-name and class-name are "concatenated" by means of a '\' in the tite of the, internal, xreflist. This patch fixes this by doubling the backslash. --- src/reflist.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/reflist.cpp b/src/reflist.cpp index 5a80b19..758734a 100644 --- a/src/reflist.cpp +++ b/src/reflist.cpp @@ -21,6 +21,7 @@ #include "util.h" #include "ftextstream.h" #include "definition.h" +#include /*! Create a list of items that are cross referenced with documentation blocks * @param listName String representing the name of the list. @@ -164,7 +165,7 @@ void RefList::generatePage() doc += " \\_internalref "; doc += item->name; doc += " \""; - doc += item->title; + doc += item->title.replace(QRegExp("\\"),"\\\\"); doc += "\" "; // write declaration in case a function with arguments if (!item->args.isEmpty()) -- cgit v0.12