From 3e70c177a92a2434de53c34f08d55c671bd60589 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Sun, 1 Jun 2008 02:14:15 +0000 Subject: [PATCH] Fix for revert_nocite lyx2lyx. Warnings as before. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25037 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/lyx2lyx/lyx_1_6.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/lyx2lyx/lyx_1_6.py b/lib/lyx2lyx/lyx_1_6.py index da391efb15..0f17557d5b 100644 --- a/lib/lyx2lyx/lyx_1_6.py +++ b/lib/lyx2lyx/lyx_1_6.py @@ -1502,9 +1502,8 @@ def revert_nocite(document): return revert_nocite_key(document.body, i + 1, j) document.body[i-1] = "\\begin_inset ERT" - document.body[i] = "status collapsed\n\n" \ - "\\begin_layout Standard" - document.body.insert(j, "\\end_layout\n"); + document.body[i:i+1] = ["status collapsed", "", "\\begin_layout Standard"] + document.body[j+1:j+1] = ["\\end_layout", ""] i = j -- 2.39.2