From: Thibaut Cuvelier Date: Fri, 23 Dec 2022 01:12:05 +0000 (+0100) Subject: LyXHTML: give the language in the root tag. X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=d85969b8b870c6b81c515b4885588e99da1110aa;p=features.git LyXHTML: give the language in the root tag. --- diff --git a/src/Buffer.cpp b/src/Buffer.cpp index 94f4dd477c..c7e479a489 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -2173,8 +2173,7 @@ Buffer::ExportStatus Buffer::writeDocBookSource(odocstream & os, } // Directly output the root tag, based on the current type of document. - string languageCode = params().language->code(); - string params = "xml:lang=\"" + languageCode + '"' + string params = "xml:lang=\"" + params().language->code() + '"' + " xmlns=\"http://docbook.org/ns/docbook\"" + " xmlns:xlink=\"http://www.w3.org/1999/xlink\"" + mathmlNamespace @@ -2241,8 +2240,7 @@ Buffer::ExportStatus Buffer::writeLyXHTMLSource(odocstream & os, if (output_preamble) { os << "\n" << "\n" - // FIXME Language should be set properly. - << "\n" + << "code()) << "\">\n" << "\n" << "\n" // FIXME Presumably need to set this right