[LyX/master] lyx2lyx for format 631: the new tag was inserted one line too late in the header and thus detected as part of the body when LyX parses the document.
Thibaut Cuvelier
tcuvelier at lyx.org
Mon Nov 4 00:14:49 UTC 2024
commit 3d560f9043bb29142d270c4eafa593929b53cad6
Author: Thibaut Cuvelier <tcuvelier at lyx.org>
Date: Mon Nov 4 01:11:51 2024 +0100
lyx2lyx for format 631: the new tag was inserted one line too late in the header and thus detected as part of the body when LyX parses the document.
---
lib/lyx2lyx/lyx_2_5.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/lyx2lyx/lyx_2_5.py b/lib/lyx2lyx/lyx_2_5.py
index b514c26aff..d1730443af 100644
--- a/lib/lyx2lyx/lyx_2_5.py
+++ b/lib/lyx2lyx/lyx_2_5.py
@@ -1025,7 +1025,7 @@ def convert_mathml_version(document):
i = find_token(document.header, "\\docbook", 0)
if i == -1:
- document.header += ["\\docbook_mathml_version 0"]
+ document.header.insert(-1, "\\docbook_mathml_version 0")
else:
document.header.insert(i + 1, "\\docbook_mathml_version 0")
@@ -1033,7 +1033,7 @@ def convert_mathml_version(document):
def revert_mathml_version(document):
"""Remove MathML version header.
- For XHTML, only remove the value 4 for \html_math_output (MathML 3) and replace it with 0
+ For XHTML, only remove the value 4 for \\html_math_output (MathML 3) and replace it with 0
(MathML Core with format 631+, MathML for 630-).
For DocBook, totally remove the header (the default with 630- is MathML)."""
More information about the lyx-cvs
mailing list