From 72acf9fb27ff9bf71088d5d86933bb4e378842ba Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Mon, 19 May 2014 09:25:16 -0400 Subject: [PATCH] Fix copy/paste error, and whitespace. --- lib/lyx2lyx/lyx_2_1.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/lyx2lyx/lyx_2_1.py b/lib/lyx2lyx/lyx_2_1.py index dbe15fecf0..1c71179fab 100644 --- a/lib/lyx2lyx/lyx_2_1.py +++ b/lib/lyx2lyx/lyx_2_1.py @@ -168,8 +168,9 @@ def convert_TeX_brace_to_Argument(document, line, n, nmax, inset, environment, o n += 1 endn = end loop += 1 - # now check the case that we have "}" + "{" in two ERTs - else: # no brace pair found + else: + # no brace pair found + # now check the case that we have "}" + "{" in two ERTs if opt: endBrace = find_token(document.body, "]", lineERT, end_layout) else: @@ -232,7 +233,7 @@ def convert_TeX_brace_to_Argument(document, line, n, nmax, inset, environment, o n += 1 lineERT2 = find_token(document.body, "\\begin_inset ERT", end_ERT, end_layout) if lineERT2 != -1: - end_ERT2 = find_end_of_inset(document.body, lineERT) + end_ERT2 = find_end_of_inset(document.body, lineERT2) if end_ERT2 == -1: document.warning("Can't find end of second ERT!!") break -- 2.39.2