[LyX/2.3.x] Fix typo in lyx2lyx conversion to 2.1 (taken from master)

José Matos jamatos at lyx.org
Sat Dec 28 18:06:21 UTC 2019


commit 78db6194c6f717cf4f72072d232f8aef5df13528
Author: José Matos <jamatos at lyx.org>
Date:   Sat Dec 28 14:39:49 2019 +0000

    Fix typo in lyx2lyx conversion to 2.1 (taken from master)
---
 lib/lyx2lyx/lyx_2_1.py |    2 +-
 status.23x             |    3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/lib/lyx2lyx/lyx_2_1.py b/lib/lyx2lyx/lyx_2_1.py
index b507151..e831a7e 100644
--- a/lib/lyx2lyx/lyx_2_1.py
+++ b/lib/lyx2lyx/lyx_2_1.py
@@ -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:
diff --git a/status.23x b/status.23x
index a2d4b00..b08b265 100644
--- a/status.23x
+++ b/status.23x
@@ -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


More information about the lyx-cvs mailing list