diff --git a/lib/lyx2lyx/lyx_2_5.py b/lib/lyx2lyx/lyx_2_5.py index b732c06765..b514c26aff 100644 --- a/lib/lyx2lyx/lyx_2_5.py +++ b/lib/lyx2lyx/lyx_2_5.py @@ -1045,7 +1045,7 @@ def revert_mathml_version(document): break # remove XHTML header if using the new value, leave alone otherwise. - if "4" in document.header: + if "4" in document.header[i]: document.header[i] = "\\html_math_output 0" while True: