mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Fix endless loop in lyx2lyx reversion routine
This commit is contained in:
parent
1ef2f135d2
commit
7e161a9d5d
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user