diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2018-11-24 17:48:03 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2018-11-24 17:48:03 (GMT) |
commit | 03404b069fb6ccbe02dcb23eb051a327afd9449c (patch) | |
tree | c1fd768fb6e773e17607a2522775d254fc94f6da /src/reflist.cpp | |
parent | 4603ba0af233674c6612395e4fa8e94b9bb25141 (diff) | |
parent | 3540365053d32741b0caab83dbdc79b83a7da1cf (diff) | |
download | Doxygen-03404b069fb6ccbe02dcb23eb051a327afd9449c.zip Doxygen-03404b069fb6ccbe02dcb23eb051a327afd9449c.tar.gz Doxygen-03404b069fb6ccbe02dcb23eb051a327afd9449c.tar.bz2 |
Merge branch 'feature/bug_emoji_objc' of https://github.com/albert-github/doxygen into albert-github-feature/bug_emoji_objc
Diffstat (limited to 'src/reflist.cpp')
-rw-r--r-- | src/reflist.cpp | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/src/reflist.cpp b/src/reflist.cpp index 7ae4c80..59f7ad4 100644 --- a/src/reflist.cpp +++ b/src/reflist.cpp @@ -171,7 +171,26 @@ void RefList::generatePage() doc += item->name; doc += " \""; // escape \'s in title, see issue #5901 - doc += substitute(item->title,"\\","\\\\"); + // prevent Obj-C names in e.g. todo list are seen as emoji + if (item->scope) + { + switch(item->scope->definitionType()) + { + case Definition::TypeClass: + case Definition::TypeNamespace: + case Definition::TypeMember: + case Definition::TypePackage: + doc += substitute(substitute(item->title,"\\","\\\\"),":","∷"); + break; + default: + doc += substitute(item->title,"\\","\\\\"); + break; + } + } + else + { + doc += substitute(item->title,"\\","\\\\"); + } doc += "\" "; // write declaration in case a function with arguments if (!item->args.isEmpty()) |