mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-26 06:15:16 +00:00
We need truly XHTML output to get MathML to display in Firefox, etc.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31982 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
83c7a5576f
commit
487053deb8
@ -513,9 +513,9 @@ def checkFormatEntries(dtl_tools):
|
||||
\Format textparagraph txt "Plain Text, Join Lines" "" "" "%%" "document"''' ])
|
||||
#
|
||||
path, xhtmlview = checkViewer('an HTML previewer', ['firefox', 'mozilla file://$$p$$i', 'netscape'],
|
||||
rc_entry = [r'\Format xhtml html "LyX HTML" "" "%%" "" "document"'])
|
||||
rc_entry = [r'\Format xhtml xhtml "LyX HTML" "" "%%" "" "document"'])
|
||||
if xhtmlview == "":
|
||||
addToRC(r'\Format xhtml html "LyX HTML" "" "" "%%" "document"')
|
||||
addToRC(r'\Format xhtml xhtml "LyX HTML" "" "" "" "document"')
|
||||
#
|
||||
checkEditor('a BibTeX editor', ['sensible-editor', 'jabref', 'JabRef', \
|
||||
'pybliographic', 'bibdesk', 'gbib', 'kbib', \
|
||||
|
@ -1421,10 +1421,10 @@ void Buffer::writeLyXHTMLSource(odocstream & os,
|
||||
d->texrow.reset();
|
||||
|
||||
if (!only_body) {
|
||||
os << "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"" <<
|
||||
" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n";
|
||||
os << "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
|
||||
os << "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN\" \"http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd\">\n";
|
||||
// FIXME Language should be set properly.
|
||||
os << "<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">\n";
|
||||
os << "<html xmlns=\"http://www.w3.org/1999/xhtml\">\n";
|
||||
// FIXME Header
|
||||
os << "<head>\n";
|
||||
// FIXME Presumably need to set this right
|
||||
|
Loading…
Reference in New Issue
Block a user