]> git.lyx.org Git - features.git/commitdiff
Fix typo (thanks to Salvatore Falco for the fix).
authorJosé Matos <jamatos@lyx.org>
Mon, 4 Nov 2019 12:12:23 +0000 (12:12 +0000)
committerJosé Matos <jamatos@lyx.org>
Mon, 4 Nov 2019 12:12:23 +0000 (12:12 +0000)
lib/lyx2lyx/lyx_2_1.py

index 8838a64042918cc1d961d1b61736f659e3bb9680..133d500f9ff31a26142586f6d8a6435504219c39 100644 (file)
@@ -181,7 +181,7 @@ def convert_TeX_brace_to_Argument(document, line, n, nmax, inset, environment, o
             else:
               beginBrace = find_token(document.body, "{", endBrace, end_layout)
             # assure that the ERTs are consecutive (11 or 12 depending if there is a space between the ERTs or not)
             else:
               beginBrace = find_token(document.body, "{", endBrace, end_layout)
             # assure that the ERTs are consecutive (11 or 12 depending if there is a space between the ERTs or not)
-            if beginBrance != -1 and (beginBrace == endBrace + 11 or beginBrace == endBrace + 12):
+            if beginBrace != -1 and (beginBrace == endBrace + 11 or beginBrace == endBrace + 12):
               end = find_token(document.body, "\\end_inset", beginBrace)
               document.body[lineERT : end + 1] = ["\\end_layout", "", "\\end_inset"]
               if loop == 1:
               end = find_token(document.body, "\\end_inset", beginBrace)
               document.body[lineERT : end + 1] = ["\\end_layout", "", "\\end_inset"]
               if loop == 1: