mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Small change.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5536 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
ac7c86da74
commit
0ad10a39d0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user