From 6c2a8df504b098d9af466552887073d3a19ae3b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Uwe=20St=C3=B6hr?= Date: Sun, 16 Apr 2017 16:24:01 +0200 Subject: [PATCH] lyx_2_3.py: whitespace fixes --- lib/lyx2lyx/lyx_2_3.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,")