From b40db6b561810adb5cf99c38814746d54c6bc82a Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Sun, 1 Jun 2008 02:21:29 +0000 Subject: [PATCH] Fix revert btprint lyx2lyx. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25039 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/lyx2lyx/lyx_1_6.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/lib/lyx2lyx/lyx_1_6.py b/lib/lyx2lyx/lyx_1_6.py index 9987c272c9..dc12990c56 100644 --- a/lib/lyx2lyx/lyx_1_6.py +++ b/lib/lyx2lyx/lyx_1_6.py @@ -1524,10 +1524,14 @@ def revert_btprintall(document): for k in range(i, j): if (document.body[k] == 'btprint "btPrintAll"'): del document.body[k] - document.body.insert(i, "\\begin_inset ERT\n" \ - "status collapsed\n\n\\begin_layout Standard\n\n" \ - "\\backslash\nnocite{*}\n" \ - "\\end_layout\n\\end_inset\n") + subst = ["\\begin_inset ERT", + "status collapsed", "", + "\\begin_layout Standard", "", + "\\backslash", + "nocite{*}", + "\\end_layout", + "\\end_inset"] + document.body[i:i] = subst i = j -- 2.39.2