GNOME Bugzilla – Bug 709803
Generated hhc file contains an error for a section of a mainpage
Last modified: 2014-01-17 14:03:16 UTC
When using a section within a mainpage as following: /** * @mainpage My Main page * This is my main page. * * @section mysection My Section * This is my section. */ The configuration file has GENERATE_HTMLHELP set to YES. After running doxygen (1.8.5) the resulting index.hhc file contains an error: <LI><OBJECT type="text/sitemap"><param name="Name" value="My Main page"><param name="Local" value="index.html"><param name="ImageNumber" value="11"></OBJECT> <UL> <LI><OBJECT type="text/sitemap"><param name="Name" value="My Section"><param name="Local" value="a00003.html#mysection"><param name="ImageNumber" value="1"></OBJECT> </UL> The inner <LI> references "a00003.html#mysection" which should be "index.html#mysection". This causes an error when running hhc.exe: HHC5013: Error: URL reference in the TOC cannot be resolved: "a00003.html#mysection". When changing the hhc file to use "index.html#mysection" it works correctly. This construction worked fine with older versions of doxygen (not exactly sure when it started to fail). In the cases where it worked the section of the mainpage would not be part of the hhc file at all though.
I assume this only happens when SHORT_NAMES = YES ?
Confirmed. Should be fixed in the next GIT update.
Yes, you are correct: this happens with SHORT_NAMES = YES. Thank you for the feedback.
This bug was previously marked ASSIGNED, which means it should be fixed in doxygen version 1.8.6. 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 (preferrably in the form of a self-contained example).
Verified to be fixed in 1.8.6, thank you for the effort.