diff options
author | albert-github <albert.tests@gmail.com> | 2018-05-11 18:35:46 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2018-05-11 18:35:46 (GMT) |
commit | edfa0d2a95dacfea8c2cddc1da1e37728d1cc608 (patch) | |
tree | 8d368eb5d0986ff39db2d580c7a75f75a6f42816 /src | |
parent | c78c338fffbdbb9b2379b1896e647f7cc697da57 (diff) | |
download | Doxygen-edfa0d2a95dacfea8c2cddc1da1e37728d1cc608.zip Doxygen-edfa0d2a95dacfea8c2cddc1da1e37728d1cc608.tar.gz Doxygen-edfa0d2a95dacfea8c2cddc1da1e37728d1cc608.tar.bz2 |
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)
Diffstat (limited to 'src')
-rw-r--r-- | src/memberdef.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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_"); |