lyx2lyx: fix index reversion

This was only a warning, but it made the tests fail
This commit is contained in:
Juergen Spitzmueller 2022-11-02 09:33:09 +01:00
parent ef10697391
commit 886d881ba3

View File

@ -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)