From: Richard Heck Date: Tue, 2 Nov 2010 14:47:28 +0000 (+0000) Subject: Fix typo/thinko here. It's the match result we want to check, of course. X-Git-Tag: 2.0.0~2118 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=e37525b0ba5928794446bac1a7d8ad88696d3a1a;p=features.git 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 --- 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"