Remove redundant \\end_layout in jss-article Code Chunk reversion.

This commit is contained in:
Juergen Spitzmueller 2015-12-26 12:07:08 +01:00
parent 968f05d015
commit 4d7453ac86

View 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"]