From: Juergen Spitzmueller Date: Sat, 26 Dec 2015 11:07:08 +0000 (+0100) Subject: Remove redundant \\end_layout in jss-article Code Chunk reversion. X-Git-Tag: 2.2.0beta1~311 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=4d7453ac864f8b64f786df48c9354ad7b52eea11;p=features.git Remove redundant \\end_layout in jss-article Code Chunk reversion. --- 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"]