Small change.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5536 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Dekel Tsur 2002-10-28 21:23:31 +00:00
parent ac7c86da74
commit 0ad10a39d0

View File

@ -124,8 +124,7 @@ def find_end_of(lines, i, start_token, end_token):
# Finds the matching \end_inset
def find_beginning_of(lines, i, start_token, end_token):
count = 1
n = len(lines)
while i < n:
while i > 0:
i = find_tokens_backwards(lines, [start_token, end_token], i-1)
if check_token(lines[i], end_token):
count = count+1