From: Richard Heck Date: Sun, 1 Jun 2008 14:57:33 +0000 (+0000) Subject: Just a comment. X-Git-Tag: 1.6.10~4576 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=9ae7fa2f3696cd9d7db2bf1baae3f17f64f39d1f;p=features.git Just a comment. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25053 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/lib/lyx2lyx/lyx_1_6.py b/lib/lyx2lyx/lyx_1_6.py index 714b4305b6..08d32bfb63 100644 --- a/lib/lyx2lyx/lyx_1_6.py +++ b/lib/lyx2lyx/lyx_1_6.py @@ -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):