mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
lyx2lyx: fix index reversion
This was only a warning, but it made the tests fail
This commit is contained in:
parent
ef10697391
commit
886d881ba3
@ -4434,7 +4434,8 @@ def revert_index_macros(document):
|
||||
|
||||
i = 0
|
||||
while True:
|
||||
i = find_token(document.body, '\\begin_inset Index', i+1)
|
||||
# trailing blank needed here to exclude IndexMacro insets
|
||||
i = find_token(document.body, '\\begin_inset Index ', i+1)
|
||||
if i == -1:
|
||||
break
|
||||
j = find_end_of_inset(document.body, i)
|
||||
|
Loading…
Reference in New Issue
Block a user