New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doxygen 1.7.5+ expands aliases to an empty string when in quotes in \ref and \image commands (Origin: bugzilla #676984) #4721

Closed
doxygen opened this Issue Jul 2, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@doxygen
Owner

doxygen commented Jul 2, 2018

status RESOLVED severity normal in component general for ---
Reported in version unspecified on platform Other
Assigned to: Dimitri van Heesch

On 2012-05-28 18:43:38 +0000, Derek Bruening wrote:

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.

On 2012-06-30 11:08:14 +0000, Dimitri van Heesch wrote:

Confirmed. Should be fixed in the next subversion update.

On 2012-07-12 15:41:51 +0000, Dimitri van Heesch wrote:

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.

@doxygen doxygen closed this Jul 2, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment