From: Richard Heck Date: Sun, 1 Jun 2008 15:01:28 +0000 (+0000) Subject: Fix the increment of i here. X-Git-Tag: 1.6.10~4574 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=44d46835fefd2ae635d3dda44ece15c31efc72b6;p=features.git Fix the increment of i here. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25055 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/lib/lyx2lyx/lyx_1_6.py b/lib/lyx2lyx/lyx_1_6.py index ebce3fa914..6140029e0e 100644 --- a/lib/lyx2lyx/lyx_1_6.py +++ b/lib/lyx2lyx/lyx_1_6.py @@ -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):