X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Flyx2lyx%2Flyx2lyx_tools.py;h=1edd1fbfc85f28c26de2cae4ed08d3f794bf6f9e;hb=9da74fe2078e24e1e7891784ecbfe33ff77e7f85;hp=75006baab54cbd000c13de46c5e16cf75e40e3b5;hpb=27733452f78af8bf172ee55eba12e1fe5c6eccae;p=lyx.git diff --git a/lib/lyx2lyx/lyx2lyx_tools.py b/lib/lyx2lyx/lyx2lyx_tools.py index 75006baab5..1edd1fbfc8 100644 --- a/lib/lyx2lyx/lyx2lyx_tools.py +++ b/lib/lyx2lyx/lyx2lyx_tools.py @@ -117,7 +117,7 @@ def put_cmd_in_ert(arg): Returns a list of strings, with the lines so wrapped. ''' - ret = ["\\begin_inset ERT", "status collapsed", "\\begin_layout Plain Layout", ""] + ret = ["\\begin_inset ERT", "status collapsed", "", "\\begin_layout Plain Layout", ""] # It will be faster for us to work with a single string internally. # That way, we only go through the unicode_reps loop once. if type(arg) is list: @@ -128,7 +128,7 @@ def put_cmd_in_ert(arg): s = s.replace(rep[1], rep[0].replace('\\\\', '\\')) s = s.replace('\\', "\\backslash\n") ret += s.splitlines() - ret += ["\\end_layout", "\\end_inset"] + ret += ["\\end_layout", "", "\\end_inset"] return ret