diff options
author | albert-github <albert.tests@gmail.com> | 2020-12-04 11:53:41 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2020-12-04 11:53:41 (GMT) |
commit | 98fa1e02eb69d6738376bb2c5febd0078ca795b5 (patch) | |
tree | 9912c70ce2d1f144b94dc1f00392720773633477 /src/groupdef.cpp | |
parent | 8b2342099979279670478918aa3febe3cba1508b (diff) | |
download | Doxygen-98fa1e02eb69d6738376bb2c5febd0078ca795b5.zip Doxygen-98fa1e02eb69d6738376bb2c5febd0078ca795b5.tar.gz Doxygen-98fa1e02eb69d6738376bb2c5febd0078ca795b5.tar.bz2 |
Creating link to not defined label in case of groups
In the doxygen group example there is for group 5 a "More" link but this points to nowhere as there is no detailed section. Using a link checker this gives:
```
Processing file:///.../html/group__group5.html
List of broken links and other issues:
file:///.../html/group__group5.html
Line: 47
Code: 200 (no message)
To do: Some of the links to this resource point to broken URI fragments
(such as index.html#fragment).
The following fragments need to be fixed:
details Line: 47
```
By applying the same logic for creating the "More" link as for for the real writing and using the appropriate function (with correction) for it
Diffstat (limited to 'src/groupdef.cpp')
-rw-r--r-- | src/groupdef.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/groupdef.cpp b/src/groupdef.cpp index bad8526..57e2226 100644 --- a/src/groupdef.cpp +++ b/src/groupdef.cpp @@ -890,9 +890,7 @@ void GroupDefImpl::writeBriefDescription(OutputList &ol) ol.writeString(" \n"); ol.enable(OutputGenerator::RTF); - if (Config_getBool(REPEAT_BRIEF) || - !documentation().isEmpty() - ) + if (hasDetailedDescription()) { ol.disableAllBut(OutputGenerator::Html); ol.startTextLink(0,"details"); @@ -1783,8 +1781,8 @@ void GroupDefImpl::updateLanguage(const Definition *d) bool GroupDefImpl::hasDetailedDescription() const { static bool repeatBrief = Config_getBool(REPEAT_BRIEF); - return ((!briefDescription().isEmpty() && repeatBrief) || - !documentation().isEmpty()); + return ((!briefDescription().isEmpty() && repeatBrief) || !documentation().isEmpty() || !inbodyDocumentation().isEmpty()) && + (m_pageDict->count()!=(uint)numDocMembers()); } // --- Cast functions |