mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 19:07:45 +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)
|
k = find_substring(document.body, ec, k, j)
|
||||||
if k == -1:
|
if k == -1:
|
||||||
break
|
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
|
k += 1
|
||||||
continue
|
continue
|
||||||
|
|
||||||
@ -696,7 +697,8 @@ def revert_index_sc(document):
|
|||||||
k = find_substring(document.body, ec, k, j)
|
k = find_substring(document.body, ec, k, j)
|
||||||
if k == -1:
|
if k == -1:
|
||||||
break
|
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
|
k += 1
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user