]> git.lyx.org Git - features.git/commitdiff
Remove redundant \\end_layout in jss-article Code Chunk reversion.
authorJuergen Spitzmueller <spitz@lyx.org>
Sat, 26 Dec 2015 11:07:08 +0000 (12:07 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Sat, 26 Dec 2015 11:08:10 +0000 (12:08 +0100)
lib/lyx2lyx/lyx_2_2.py

index 8571c5cdcc2fa0d5ad1d6bb2143ca82e122cb6cb..54c97ac09e1b877c624e60afb5b144a4aa2e2bc1 100644 (file)
@@ -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"]