Skip to content

GENERATE_HTMLHELP with \msc & \endmsc is broken because of absolute paths in index.hhp since 1.9.3 #10754

@XiaoP76

Description

@XiaoP76

Describe the bug
If I use \msc & \endmsc tags in a C++ comment and use GENERATE_HTMLHELP=YES, Doxygen fails with the error message:

Running html help compiler...
error: failed to run html help compiler on index.hhp

Running the hhc compiler manually reveals the problem:

d:\bug1.9.3>hhc html\index.hhp
Microsoft HTML Help Compiler 4.74.8702
Compiling d:\bug1.9.3\html\KCASystem.chm
HHC5003: Error: Compilation failed while compiling bug1.9.3\html\msc_inline_mscgraph_1.png.
The following files were not compiled:
bug1.9.3\html\msc_inline_mscgraph_1.png
Unable to open html\index.hhp.

The reason is that Doxygen 1.9.3 generates an absolute path in the index.hhp, e.g.

[FILES]
d:/bug1.9.3/./html\msc_inline_mscgraph_1.png

Doxgen 1.9.2 with the same Doxyfile generates a relative path:

[FILES]
msc_inline_mscgraph_1.png

To Reproduce
Extract the attached zip file bug1.9.3.zip
and run
doxygen Manual.doxygen

Expected behavior
Expected is that the hhc compiler can create the chm file without an error even if \msc comments are used.

Version
Version 1.9.2 is the last one that works as expected.
Versions starting from 1.9.3 till the current 1.10.0 show the bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    HTMLHTML / XHTML outputbug

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions