LyXHTML: remove meta content-type, it is only for HTML5, not XHTML5 (LyX is generating XML-compatible HTML, i.e. XHTML5).

This commit is contained in:
Thibaut Cuvelier 2023-01-11 01:12:22 +01:00
parent fb70f89983
commit 861af2b84f

View File

@ -2254,9 +2254,7 @@ Buffer::ExportStatus Buffer::writeLyXHTMLSource(odocstream & os,
os << "<!DOCTYPE html>\n"
<< "<html xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"" << from_ascii(htmlCode) << "\">\n"
<< "<head>\n"
<< "<meta name=\"generator\" content=\"" << PACKAGE_STRING << "\" />\n"
// FIXME Presumably need to set this right
<< "<meta http-equiv=\"content-type\" content=\"text/html; charset=UTF-8\" />\n";
<< "<meta name=\"generator\" content=\"" << PACKAGE_STRING << "\" />\n";
docstring const & doctitle = features.htmlTitle();
os << "<title>"