mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-24 21:55:29 +00:00
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:
parent
f7db6b62aa
commit
44d46835fe
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user