Skip to content

Commit

Permalink
issue_8889 ".html_html" attached to some url links when linking to ex…
Browse files Browse the repository at this point in the history
…ternal library

When having a tooltip we see that when a tag file is used the extension in the id contains ".html_html" this should be "_html" (from the first ".html" as in the tag file the ".html" is already present.
  • Loading branch information
albert-github committed Nov 15, 2021
1 parent 7de7ba1 commit f6c66d9
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/tooltip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,18 @@ void TooltipManager::addTooltip(CodeOutputInterface &ol,const Definition *d)
{
id = id.right(id.length()-i-1); // strip path (for CREATE_SUBDIRS=YES)
}
id+=escapeId(Doxygen::htmlFileExtension);
// In case an extension is present translate this extension to something understood by the tooltip handler
// otherwise extend t with a translated htmlFileExtension.
QCString currentExtension = getFileNameExtension(id);
if (currentExtension.isEmpty())
{
id += escapeId(Doxygen::htmlFileExtension);
}
else
{
id = stripExtensionGeneral(id,currentExtension) + escapeId(currentExtension);
}

QCString anc = d->anchor();
if (!anc.isEmpty())
{
Expand Down

0 comments on commit f6c66d9

Please sign in to comment.