summaryrefslogtreecommitdiffstats
path: root/src/filedef.cpp
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2019-09-30 16:57:25 (GMT)
committeralbert-github <albert.tests@gmail.com>2019-09-30 16:57:25 (GMT)
commitcbbd26b39cf63148b25d40498f0ab174e6094df7 (patch)
tree96167eaf9b5778b8a572e48284536d05f9f63319 /src/filedef.cpp
parent4e21d19cf63b17aadb62905535262deb208a0c73 (diff)
downloadDoxygen-cbbd26b39cf63148b25d40498f0ab174e6094df7.zip
Doxygen-cbbd26b39cf63148b25d40498f0ab174e6094df7.tar.gz
Doxygen-cbbd26b39cf63148b25d40498f0ab174e6094df7.tar.bz2
Bug 335614 - HTML link incorrect when using tagfile
- See to it that when an extension is already present this extension is used and not a second extension is added - let the tag file know what the original extension was.
Diffstat (limited to 'src/filedef.cpp')
-rw-r--r--src/filedef.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/filedef.cpp b/src/filedef.cpp
index e4f6c86..e5e126c 100644
--- a/src/filedef.cpp
+++ b/src/filedef.cpp
@@ -349,7 +349,7 @@ void FileDefImpl::writeTagFile(FTextStream &tagFile)
tagFile << " <compound kind=\"file\">" << endl;
tagFile << " <name>" << convertToXML(name()) << "</name>" << endl;
tagFile << " <path>" << convertToXML(getPath()) << "</path>" << endl;
- tagFile << " <filename>" << convertToXML(getOutputFileBase()) << "</filename>" << endl;
+ tagFile << " <filename>" << convertToXML(getOutputFileBase()) << (hasExtension(getOutputFileBase()) ? "" : Doxygen::htmlFileExtension) << "</filename>" << endl;
if (m_includeList && m_includeList->count()>0)
{
QListIterator<IncludeInfo> ili(*m_includeList);