]> git.lyx.org Git - lyx.git/commitdiff
Just a comment.
authorRichard Heck <rgheck@comcast.net>
Sun, 1 Jun 2008 14:57:33 +0000 (14:57 +0000)
committerRichard Heck <rgheck@comcast.net>
Sun, 1 Jun 2008 14:57:33 +0000 (14:57 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25053 a592a061-630c-0410-9148-cb99ea01b6c8

lib/lyx2lyx/lyx_1_6.py

index 714b4305b645ef8290c05e5a3b10c0faa1a2e94a..08d32bfb63db2a23d428a4794d63866cb2114c78 100644 (file)
@@ -1540,6 +1540,8 @@ def revert_btprintall(document):
                 #this should not happen
                 document.warning("End of CommandInset bibtex not found in revert_btprintall!")
                 j = len(document.body)
+            # this range isn't really right, but it should be OK, since we shouldn't
+            # see more than one matching line in each inset
             for k in range(i, j):
                 if (document.body[k] == 'btprint "btPrintAll"'):
                     del document.body[k]
@@ -1551,7 +1553,7 @@ def revert_btprintall(document):
                              "\\end_layout",
                              "\\end_inset"]
                     document.body[i:i] = subst
-            i = j
+            i = j + len(subst) - 1
 
 
 def revert_bahasam(document):