From 94ed54b51a676fe395809493a7a38dec0cc2b44c Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Thu, 29 May 2014 10:44:02 +0200 Subject: [PATCH] Fix reversion of box insets. (cherry picked from commit da75d3194824c87e2b2fc92fa4644e080aeaf962) --- lib/lyx2lyx/lyx_2_1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/lyx2lyx/lyx_2_1.py b/lib/lyx2lyx/lyx_2_1.py index 4dab15b06b..27f7faa5d7 100644 --- a/lib/lyx2lyx/lyx_2_1.py +++ b/lib/lyx2lyx/lyx_2_1.py @@ -4197,7 +4197,7 @@ def revert_mbox_fbox(document): i += 1 continue BeginLayout = find_token(document.body, "\\begin_layout Plain Layout", j) - EndLayout = find_token(document.body, "\\end_layout", BeginLayout) + EndLayout = find_end_of_layout(document.body, BeginLayout) # replace if width is "" if (width == '""'): document.body[EndLayout:k + 1] = put_cmd_in_ert("}") -- 2.39.5