From edfa0d2a95dacfea8c2cddc1da1e37728d1cc608 Mon Sep 17 00:00:00 2001 From: albert-github Date: Fri, 11 May 2018 20:35:46 +0200 Subject: Cannot properly jump from brief to detailed function description In case a plain python function (i.e. not in a class or similar) the reference in the brief description to the detailed description points to nowhere as the anchor at the detailed description has file_ in front of it. The file_ is required for namespaces as mentioned in the code: // member is in a namespace, but is written as part of the file documentation // as well, so we need to make sure its label is unique. tests, on a python project, gave that this doesn't happen and that in case of just files a wrong member reference is given in. Based on: Generating Python Documentation with doxygen produces broken links to functions (https://stackoverflow.com/questions/50217315/generating-python-documentation-with-doxygen-produces-broken-links-to-functions#50217315) --- src/memberdef.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/memberdef.cpp b/src/memberdef.cpp index 0bd0701..abd5a65 100644 --- a/src/memberdef.cpp +++ b/src/memberdef.cpp @@ -2576,7 +2576,7 @@ void MemberDef::writeDocumentation(MemberList *ml, else if (getFileDef()) { scopeName=getFileDef()->displayName(); scopedContainer=getFileDef(); } ciname = ((GroupDef *)container)->groupTitle(); } - else if (container->definitionType()==TypeFile && getNamespaceDef()) + else if (container->definitionType()==TypeFile && getNamespaceDef() && lang != SrcLangExt_Python) { // member is in a namespace, but is written as part of the file documentation // as well, so we need to make sure its label is unique. memAnchor.prepend("file_"); -- cgit v0.12