]> git.lyx.org Git - features.git/commitdiff
Fix typo in lyx2lyx conversion to 2.1 (taken from master)
authorJosé Matos <jamatos@lyx.org>
Sat, 28 Dec 2019 14:39:49 +0000 (14:39 +0000)
committerJosé Matos <jamatos@lyx.org>
Sat, 28 Dec 2019 14:39:49 +0000 (14:39 +0000)
lib/lyx2lyx/lyx_2_1.py
status.23x

index b507151cb56eddc00bc01e9a157a8a0d5c2a2fc0..e831a7ebcf39b0481feab50362acccf934768d0a 100644 (file)
@@ -180,7 +180,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)
-            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:
index a2d4b00f6e9b2792ab29d4384612df65bd8edc33..b08b2656ccd0721c8b37645db57c23a120c95ec4 100644 (file)
@@ -182,7 +182,8 @@ What's new
 
 * LYX2LYX
 
-
+- Fix typo in the code that converts from file formats older than lyx 2.1
+  (thanks to Salvatore Falco).
 
 
 * TEX2LYX