Fix the increment of i here.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25055 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2008-06-01 15:01:28 +00:00
parent f7db6b62aa
commit 44d46835fe

View File

@ -1542,6 +1542,7 @@ def revert_btprintall(document):
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
addedlines = 0
for k in range(i, j):
if (document.body[k] == 'btprint "btPrintAll"'):
del document.body[k]
@ -1553,7 +1554,8 @@ def revert_btprintall(document):
"\\end_layout",
"\\end_inset"]
document.body[i:i] = subst
i = j
addlines = addedlines + len(subst) - 1
i = j + addedlines
def revert_bahasam(document):