After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 690403 - [patch] Title not used when \ref'ing to a \section in a tag
[patch] Title not used when \ref'ing to a \section in a tag
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: general
1.8.2
Other Linux
: Normal normal
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2012-12-18 11:22 UTC by Philipp Moeller
Modified: 2012-12-26 16:09 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch and testcase to fix not used titles (45.38 KB, application/zip)
2012-12-18 11:22 UTC, Philipp Moeller
Details

Description Philipp Moeller 2012-12-18 11:22:23 UTC
Created attachment 231795 [details]
patch and testcase to fix not used titles

The docanchor tag does not contain the title of the command that generated it. 

In the case of \section this leads to anchors that use the title when
\ref'ing to them inside one documentation unit and that use the name
of the anchor when \ref'ing to them through a tag.

To reproduce this with the attached test-case:

  $ doxygen Doxyfile1 # creates tag files one.tag
  $ doxygen Doxyfile2 # uses one.tag
  $ firefox one/html/index.html # see the working \ref using the title
  $ firefox two/html/index.html # see the \ref that is using the anchor name
  
The attached patch fixes this issue by adding a title attribute to the
docanchor element and uses it.

The attached diff can also be seen here: https://github.com/bo0ts/doxygen-fixes/commit/9180aa25c0300bed452fc30e729dbe280e2bdce1
Comment 1 Dimitri van Heesch 2012-12-25 21:00:56 UTC
Thanks, I'll include the patch in the next release.
Comment 2 Dimitri van Heesch 2012-12-26 16:09:18 UTC
This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.8.3. Please verify if this is indeed the case. Reopen the
bug if you think it is not fixed and please include any additional information
that you think can be relevant.