mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
fix lyx2lyx functions
This commit is contained in:
parent
5b5127891d
commit
01f5efbe13
@ -653,7 +653,8 @@ def convert_index_sc(document):
|
||||
k = find_substring(document.body, ec, k, j)
|
||||
if k == -1:
|
||||
break
|
||||
if get_containing_inset(document.body, k)[0] == "ERT":
|
||||
inInset = get_containing_inset(document.body, k)
|
||||
if inInset and inInset[0] == "ERT":
|
||||
k += 1
|
||||
continue
|
||||
|
||||
@ -696,7 +697,8 @@ def revert_index_sc(document):
|
||||
k = find_substring(document.body, ec, k, j)
|
||||
if k == -1:
|
||||
break
|
||||
if get_containing_inset(document.body, k)[0] == "ERT":
|
||||
inInset = get_containing_inset(document.body, k)
|
||||
if inInset and inInset[0] == "ERT":
|
||||
k += 1
|
||||
continue
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user