Fix endless loop in lyx2lyx reversion routine

This commit is contained in:
Juergen Spitzmueller 2024-11-04 12:06:18 +01:00
parent 1ef2f135d2
commit 7e161a9d5d

View File

@ -1044,9 +1044,10 @@ def revert_mathml_version(document):
# nothing to do # nothing to do
break break
# remove XHTML header if using the new value, leave alone otherwise. # reset XHTML header if using the new value, leave alone otherwise.
if "4" in document.header[i]: if "4" in document.header[i]:
document.header[i] = "\\html_math_output 0" document.header[i] = "\\html_math_output 0"
break
while True: while True:
i = find_token(document.header, "\\docbook_mathml_version", 0) i = find_token(document.header, "\\docbook_mathml_version", 0)