summaryrefslogtreecommitdiffstats
path: root/src/htmlgen.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2002-02-10 18:17:19 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2002-02-10 18:17:19 (GMT)
commitd1e917df5d2bb4125a22eba3c984640c099a7096 (patch)
treed1468ce96ea2cb67fa7825027a3f93a67bf4d9a6 /src/htmlgen.cpp
parent88c84f0affadf69d1813d1a971692a5097f8870a (diff)
downloadDoxygen-d1e917df5d2bb4125a22eba3c984640c099a7096.zip
Doxygen-d1e917df5d2bb4125a22eba3c984640c099a7096.tar.gz
Doxygen-d1e917df5d2bb4125a22eba3c984640c099a7096.tar.bz2
Release-1.2.13-20020210
Diffstat (limited to 'src/htmlgen.cpp')
-rw-r--r--src/htmlgen.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/htmlgen.cpp b/src/htmlgen.cpp
index fbd0c37..35002c5 100644
--- a/src/htmlgen.cpp
+++ b/src/htmlgen.cpp
@@ -200,7 +200,7 @@ void HtmlGenerator::startFile(const char *name,const char *,
//printf("HtmlGenerator::startFile(%s)\n",name);
QCString fileName=name;
lastTitle=title;
- if (fileName.right(5)!=".html") fileName+=".html";
+ if (fileName.right(htmlFileExtensionLength)!=htmlFileExtension) fileName+=htmlFileExtension;
startPlainFile(fileName);
if (Config_getBool("GENERATE_HTMLHELP"))
{
@@ -379,7 +379,7 @@ void HtmlGenerator::writeIndexItem(const char *ref,const char *f,
{
if ((dest=Doxygen::tagDestinationDict[ref])) t << *dest << "/";
}
- if (f) t << f << ".html\">";
+ if (f) t << f << htmlFileExtension << "\">";
}
else
{
@@ -396,7 +396,7 @@ void HtmlGenerator::writeIndexItem(const char *ref,const char *f,
}
//if (Config_getBool("GENERATE_HTMLHELP") && f)
//{
- // htmlHelp->addItem(name,((QCString)f)+".html");
+ // htmlHelp->addItem(name,((QCString)f)+htmlFileExtension);
//}
}
@@ -405,12 +405,12 @@ void HtmlGenerator::writeStartAnnoItem(const char *,const char *f,
{
t << "<li>";
if (path) docify(path);
- t << "<a class=\"el\" href=\"" << f << ".html\">";
+ t << "<a class=\"el\" href=\"" << f << htmlFileExtension << "\">";
docify(name);
t << "</a> ";
//if (Config_getBool("GENERATE_HTMLHELP") && f)
//{
- // htmlHelp->addItem(name, ((QCString)f)+".html");
+ // htmlHelp->addItem(name, ((QCString)f)+htmlFileExtension);
//}
}
@@ -434,7 +434,7 @@ void HtmlGenerator::writeObjectLink(const char *ref,const char *f,
{
if ((dest=Doxygen::tagDestinationDict[ref])) t << *dest << "/";
}
- if (f) t << f << ".html";
+ if (f) t << f << htmlFileExtension;
if (anchor) t << "#" << anchor;
t << "\">";
docify(name);
@@ -461,7 +461,7 @@ void HtmlGenerator::writeCodeLink(const char *ref,const char *f,
{
if ((dest=Doxygen::tagDestinationDict[ref])) t << *dest << "/";
}
- if (f) t << f << ".html";
+ if (f) t << f << htmlFileExtension;
if (anchor) t << "#" << anchor;
t << "\">";
docify(name);
@@ -472,7 +472,7 @@ void HtmlGenerator::writeCodeLink(const char *ref,const char *f,
void HtmlGenerator::startTextLink(const char *f,const char *anchor)
{
t << "<a href=\"";
- if (f) t << f << ".html";
+ if (f) t << f << htmlFileExtension;
if (anchor) t << "#" << anchor;
t << "\">";
}
@@ -531,7 +531,7 @@ void HtmlGenerator::writeSectionRef(const char *ref,const char *name,
QCString *dest;
//printf("writeSectionRef(%s,%s,%s,%s)\n",ref,name,anchor,title);
QCString refName=name;
- if (refName.right(5)!=".html") refName+=".html";
+ if (refName.right(htmlFileExtensionLength)!=htmlFileExtension) refName+=htmlFileExtension;
t << "<a ";
if (ref)
{
@@ -553,7 +553,7 @@ void HtmlGenerator::writeSectionRefItem(const char *name,const char *lab,
const char *title)
{
QCString refName=name;
- if (refName.right(5)!=".html") refName+=".html";
+ if (refName.right(htmlFileExtensionLength)!=htmlFileExtension) refName+=htmlFileExtension;
t << "<a href=\"" << refName << "#" << lab << "\">";
docify(title);
t << "</a>";