From: Dekel Tsur Date: Mon, 28 Oct 2002 21:23:31 +0000 (+0000) Subject: Small change. X-Git-Tag: 1.6.10~18064 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=0ad10a39d0e1ac716b9d7857a9c0050e35384111;p=features.git Small change. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5536 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/lib/lyx2lyx/parser_tools.py b/lib/lyx2lyx/parser_tools.py index 61fafe8d8a..e24d5bd36c 100644 --- a/lib/lyx2lyx/parser_tools.py +++ b/lib/lyx2lyx/parser_tools.py @@ -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