[Doxygen-develop] Some meta tags are not properly closed.
Brought to you by:
dimitri
From: Phil M. <phi...@br...> - 2014-04-09 14:07:15
|
Hi, When I run doxygen built from git head on some of my source the resulting html has meta tags that are not properly closed (and fail to pass the w3c validator as a result). The following is a sample of the html output (from html/search/all_0.html): <html><head><title></title> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta name="generator" content="Doxygen 1.8.6"> Note that the second meta tag is not properly closed (and as the doctype of this file is XHTML it needs to be). This trivial patch resolves this issue: diff --git a/src/searchindex.cpp b/src/searchindex.cpp index 7aa8216..a550eb1 100644 --- a/src/searchindex.cpp +++ b/src/searchindex.cpp @@ -1027,7 +1027,7 @@ void writeJavascriptSearchIndex() " \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">" << endl; t << "<html><head><title></title>" << endl; t << "<meta http-equiv=\"Content-Type\" content=\"text/xhtml;charset=UTF-8\"/>" << endl; - t << "<meta name=\"generator\" content=\"Doxygen " << versionString << "\">" << endl; + t << "<meta name=\"generator\" content=\"Doxygen " << versionString << "\"/>" << endl; t << "<link rel=\"stylesheet\" type=\"text/css\" href=\"search.css\"/>" << endl; t << "<script type=\"text/javascript\" src=\"" << baseName << ".js\"></script>" << endl; t << "<script type=\"text/javascript\" src=\"search.js\"></script>" << endl; Hope this is useful Regards Phil |