From 4d7453ac864f8b64f786df48c9354ad7b52eea11 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Sat, 26 Dec 2015 12:07:08 +0100 Subject: [PATCH] Remove redundant \\end_layout in jss-article Code Chunk reversion. --- lib/lyx2lyx/lyx_2_2.py | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/lyx2lyx/lyx_2_2.py b/lib/lyx2lyx/lyx_2_2.py index 8571c5cdcc..54c97ac09e 100644 --- a/lib/lyx2lyx/lyx_2_2.py +++ b/lib/lyx2lyx/lyx_2_2.py @@ -1418,7 +1418,6 @@ def revert_jss(document): h = find_token(document.body, "\\begin_inset Flex Code Chunk", h) if h != -1: endh = find_end_of_inset(document.body, h) - document.body[endh + 1 : endh] = ["\\end_layout"] document.body[endh : endh + 1] = put_cmd_in_ert("\\end{CodeChunk}") document.body[h : h + 3] = put_cmd_in_ert("\\begin{CodeChunk}") document.body[h - 1 : h] = ["\\begin_layout Standard"] -- 2.39.5