]> git.lyx.org Git - features.git/commitdiff
Fix for revert_nocite lyx2lyx. Warnings as before.
authorRichard Heck <rgheck@comcast.net>
Sun, 1 Jun 2008 02:14:15 +0000 (02:14 +0000)
committerRichard Heck <rgheck@comcast.net>
Sun, 1 Jun 2008 02:14:15 +0000 (02:14 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25037 a592a061-630c-0410-9148-cb99ea01b6c8

lib/lyx2lyx/lyx_1_6.py

index da391efb15a2b7c78e920ca71fe2a14890b85edd..0f17557d5b515d8ba3f469dcdd551078d2447c93 100644 (file)
@@ -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