diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2004-08-03 16:49:33 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2004-08-03 16:49:33 (GMT) |
commit | f4bab88acea24b261d85d25359c73cbb49869c5f (patch) | |
tree | 947221d2f202d586f7f386c57472cc941980963f /src/htmlgen.cpp | |
parent | d7bf5675c4490ac0291cf1795b7499f2047d5c58 (diff) | |
download | Doxygen-f4bab88acea24b261d85d25359c73cbb49869c5f.zip Doxygen-f4bab88acea24b261d85d25359c73cbb49869c5f.tar.gz Doxygen-f4bab88acea24b261d85d25359c73cbb49869c5f.tar.bz2 |
Release-1.3.8-20040803
Diffstat (limited to 'src/htmlgen.cpp')
-rw-r--r-- | src/htmlgen.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/htmlgen.cpp b/src/htmlgen.cpp index 5866c39..69dd955 100644 --- a/src/htmlgen.cpp +++ b/src/htmlgen.cpp @@ -309,6 +309,12 @@ void HtmlGenerator::writeStyleSheetFile(QFile &file) static void writeDefaultHeaderFile(QTextStream &t, const char *title, const char *relPath,bool usePathCmd) { + QString relPathStr; + if (usePathCmd) + relPathStr="$relpath$"; + else + relPathStr=relPath; + t << "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n" "<html><head>" "<meta http-equiv=\"Content-Type\" content=\"text/html;charset=" @@ -320,11 +326,7 @@ static void writeDefaultHeaderFile(QTextStream &t, const char *title, t << "href=\""; if (Config_getString("HTML_STYLESHEET").isEmpty()) { - if (usePathCmd) - t << "$relpath$"; - else - t << relPath; - t << "doxygen.css"; + t << relPathStr << "doxygen.css"; } else { @@ -334,7 +336,7 @@ static void writeDefaultHeaderFile(QTextStream &t, const char *title, { err("Error: user specified HTML style sheet file does not exist!\n"); } - t << cssfi.fileName(); + t << relPathStr << cssfi.fileName(); } t << "\" rel=\"stylesheet\" type=\"text/css\">\n" "</head><body>\n"; |