From e37525b0ba5928794446bac1a7d8ad88696d3a1a Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Tue, 2 Nov 2010 14:47:28 +0000 Subject: [PATCH] Fix typo/thinko here. It's the match result we want to check, of course. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35994 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/lyx2lyx/lyx_2_0.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/lyx2lyx/lyx_2_0.py b/lib/lyx2lyx/lyx_2_0.py index 5e412505d0..779a0c5f07 100644 --- a/lib/lyx2lyx/lyx_2_0.py +++ b/lib/lyx2lyx/lyx_2_0.py @@ -1402,7 +1402,7 @@ def revert_math_output(document): rgx = re.compile(r'\\html_math_output\s+(\d)') m = rgx.match(document.header[i]) newval = "true" - if rgx: + if m: val = m.group(1) if val == "1" or val == "2": newval = "false" -- 2.39.5