From 48ffa78c9a9695d06295d39c961f2997be29fff2 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Tue, 2 Nov 2010 15:37:53 +0000 Subject: [PATCH] Fix another thinko of mine. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36000 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/lyx2lyx/lyx_2_0.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/lib/lyx2lyx/lyx_2_0.py b/lib/lyx2lyx/lyx_2_0.py index bf891087a1..15793b04b6 100644 --- a/lib/lyx2lyx/lyx_2_0.py +++ b/lib/lyx2lyx/lyx_2_0.py @@ -1386,12 +1386,14 @@ def convert_math_output(document): return rgx = re.compile(r'\\html_use_mathml\s+(\w+)') m = rgx.match(document.header[i]) - if rgx: - newval = "0" # MathML - val = m.group(1) - if val != "true": - newval = "2" # Images - document.header[i] = "\\html_math_output " + newval + newval = "0" # MathML + if m: + val = m.group(1) + if val != "true": + newval = "2" # Images + else: + document.warning("Can't match " + document.header[i]) + document.header[i] = "\\html_math_output " + newval def revert_math_output(document): -- 2.39.5