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 676984 - doxygen 1.7.5+ expands aliases to an empty string when in quotes in \ref and \image commands
doxygen 1.7.5+ expands aliases to an empty string when in quotes in \ref and ...
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2012-05-28 18:43 UTC by Derek Bruening
Modified: 2012-11-18 11:12 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Derek Bruening 2012-05-28 18:43:38 UTC
This is a regression: versions up through 1.7.4 did not exhibit this problem.  All versions from 1.7.5 forward do show the problem.

If an alias is used in the quoted argument to \ref or \image, a warning is emitted and the alias is not expanded and is simply replace with an empty string.

Here is a reproducer:


% ls
Doxyfile  image.jpg  repro.h
% cat Doxyfile
ALIASES                = myalias=Complete
IMAGE_PATH             = .
% cat repro.h
/**
 * \mainpage Main Page
 *
 * \anchor myanchor
 *
 * \ref myanchor "Ref text is \myalias."
 *
 * \image html image.jpg "Image is \myalias."
 *
 * Here is some \myalias content.
 */

run:
% /extsw/pkgs/doxygen/svnold/co_1_7_5/bin/doxygen --version
1.7.5
% /extsw/pkgs/doxygen/svnold/co_1_7_5/bin/doxygen
Generating index page...
/extsw/pkgs/doxygen/bug/repro.h:4: warning: Illegal command myalias as part of a \ref
/extsw/pkgs/doxygen/bug/repro.h:6: warning: Illegal command myalias as part of a \image
/extsw/pkgs/doxygen/bug/repro.h:4: warning: Illegal command myalias as part of a \ref
/extsw/pkgs/doxygen/bug/repro.h:6: warning: Illegal command myalias as part of a \image
% links --dump html/index.html | head -12
     * [1]Main Page
     * [2]Files
     * [3]_____________________  [4][IMG]

   Main Page

   [5]Ref text is .

   [6]image.jpg
   Image is .

   Here is some Complete content.

% /extsw/pkgs/doxygen/svnold/co_1_7_4/bin/doxygen --version
1.7.4
% /extsw/pkgs/doxygen/svnold/co_1_7_4/bin/doxygen
Generating index page...
% links --dump html/index.html | head -12
     * [1]Main Page
     * [2]Files
     * [3]_____________________  [4][IMG]

   Main Page

   [5]Ref text is Complete.

   [6]image.jpg
   Image is Complete.

   Here is some Complete content.
Comment 1 Dimitri van Heesch 2012-06-30 11:08:14 UTC
Confirmed. Should be fixed in the next subversion update.
Comment 2 Dimitri van Heesch 2012-07-12 15:41:51 UTC
This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.8.1.2. 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.