GNOME Bugzilla – Bug 676984
doxygen 1.7.5+ expands aliases to an empty string when in quotes in \ref and \image commands
Last modified: 2012-11-18 11:12:33 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.
Confirmed. Should be fixed in the next subversion update.
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.