]> git.lyx.org Git - features.git/commitdiff
Small change.
authorDekel Tsur <dekelts@tau.ac.il>
Mon, 28 Oct 2002 21:23:31 +0000 (21:23 +0000)
committerDekel Tsur <dekelts@tau.ac.il>
Mon, 28 Oct 2002 21:23:31 +0000 (21:23 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5536 a592a061-630c-0410-9148-cb99ea01b6c8

lib/lyx2lyx/parser_tools.py

index 61fafe8d8a564267bbddc771e10679442fe8324c..e24d5bd36cb375f6b24bc9c917fa8402da80451e 100644 (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