Re: Some meta tags are not properly closed.

Dimitri van Heesch <[email protected]> Sun, 13 Apr 2014 11:44:40 +0200
Newsgroups gmane.text.doxygen.devel
Message-ID <[email protected]>
Hi Phil,

I've included your change in this commit
https://github.com/doxygen/doxygen/commit/4ccfb9efa8382de50dfc5b176cb147fd1b05870c

Regards,
  Dimitri

On 09 Apr 2014, at 16:07 , Phil Mason <[email protected]> wrote:

> 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
>  
> ------------------------------------------------------------------------------
> Put Bad Developers to Shame
> Dominate Development with Jenkins Continuous Integration
> Continuously Automate Build, Test & Deployment 
> Start a new project now. Try Jenkins in the cloud.
> http://p.sf.net/sfu/13600_Cloudbees_______________________________________________
> Doxygen-develop mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/doxygen-develop


------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees