Skip to content

Commit be62dae

Browse files
committed
issue #8889 Extra ".html" attached to some url links when linking to external library
In case the URL already has an extension present doxygen should not add an extra extension.
1 parent 096a1c1 commit be62dae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/dotnode.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -460,11 +460,11 @@ void DotNode::writeBox(TextStream &t,
460460
int anchorPos = m_url.findRev('#');
461461
if (anchorPos==-1)
462462
{
463-
t << ",URL=\"" << m_url << Doxygen::htmlFileExtension << "\"";
463+
t << ",URL=\"" << addHtmlExtensionIfMissing(m_url) << "\"";
464464
}
465465
else
466466
{
467-
t << ",URL=\"" << m_url.left(anchorPos) << Doxygen::htmlFileExtension
467+
t << ",URL=\"" << addHtmlExtensionIfMissing(m_url.left(anchorPos))
468468
<< m_url.right(m_url.length()-anchorPos) << "\"";
469469
}
470470
}

0 commit comments

Comments
 (0)