I am attaching a small patch to correct a typo in lyx_2_1.py, which prevented the conversion of a file
-- Salvatore Falco
From fbaaee6944f6fe9d761df14e80c9934e1ad0ae4a Mon Sep 17 00:00:00 2001 From: locale <ilcensore.utice...@gmail.com> Date: Wed, 30 Oct 2019 14:28:02 +0100 Subject: [PATCH] corrected typo --- lib/lyx2lyx/lyx_2_1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/lyx2lyx/lyx_2_1.py b/lib/lyx2lyx/lyx_2_1.py index 8838a64042..133d500f9f 100644 --- a/lib/lyx2lyx/lyx_2_1.py +++ b/lib/lyx2lyx/lyx_2_1.py @@ -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) - 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: -- 2.17.1
-- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel