From: Uwe Stöhr Date: Sun, 16 Apr 2017 14:24:01 +0000 (+0200) Subject: lyx_2_3.py: whitespace fixes X-Git-Tag: 2.3.0alpha1~49 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=6c2a8df504b098d9af466552887073d3a19ae3b2;p=features.git lyx_2_3.py: whitespace fixes --- diff --git a/lib/lyx2lyx/lyx_2_3.py b/lib/lyx2lyx/lyx_2_3.py index 5857b82a74..e03b2b9ee6 100644 --- a/lib/lyx2lyx/lyx_2_3.py +++ b/lib/lyx2lyx/lyx_2_3.py @@ -1984,7 +1984,7 @@ def convert_mathindent(document): document.header[i] = document.header[i].replace("fleqn,", "") j = find_re(document.header, regexp, 0) if i == j: - # then we have fleqn as the only option + # then we have fleqn as the only option del document.header[i] else: document.header.insert(k, "\\is_math_indent 0") @@ -2006,7 +2006,7 @@ def revert_mathindent(document): regexp = re.compile(r'(\\is_math_indent)') j = find_re(document.header, regexp, 0) del document.header[j] - else: + else: k = find_token(document.header, "\\options", 0) if k != -1: document.header[k] = document.header[k].replace("\\options", "\\options fleqn,")