From 0ad10a39d0e1ac716b9d7857a9c0050e35384111 Mon Sep 17 00:00:00 2001 From: Dekel Tsur Date: Mon, 28 Oct 2002 21:23:31 +0000 Subject: [PATCH] Small change. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5536 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/lyx2lyx/parser_tools.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 -- 2.39.2