From 44d46835fefd2ae635d3dda44ece15c31efc72b6 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Sun, 1 Jun 2008 15:01:28 +0000 Subject: [PATCH] Fix the increment of i here. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25055 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/lyx2lyx/lyx_1_6.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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): -- 2.39.2