]> git.lyx.org Git - features.git/commitdiff
Fix another thinko of mine.
authorRichard Heck <rgheck@comcast.net>
Tue, 2 Nov 2010 15:37:53 +0000 (15:37 +0000)
committerRichard Heck <rgheck@comcast.net>
Tue, 2 Nov 2010 15:37:53 +0000 (15:37 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36000 a592a061-630c-0410-9148-cb99ea01b6c8

lib/lyx2lyx/lyx_2_0.py

index bf891087a192bee743ea7ce3773d65d0f349c283..15793b04b6baeb5eb40be60048462b7a2791c243 100644 (file)
@@ -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):