Fix glitch in index reversion routine

This commit is contained in:
Juergen Spitzmueller 2022-11-03 05:54:50 +01:00
parent 975f304185
commit b8502a3ea2

View File

@ -4509,7 +4509,7 @@ def revert_index_macros(document):
document.warning("Malformed LyX document: Can't find end of index macro inset plain layout at line %d" % i) document.warning("Malformed LyX document: Can't find end of index macro inset plain layout at line %d" % i)
else: else:
xicont = document.body[xiimpl:xiimple] xicont = document.body[xiimpl:xiimple]
xxicont = document.body[iimpl:xiimpl] + document.body[xiimple+1:iimple] xxicont = document.body[xiimple+1:xiim] + document.body[xiime+1:iimple]
icont = xicont + put_cmd_in_ert("@") + xxicont[1:] icont = xicont + put_cmd_in_ert("@") + xxicont[1:]
if len(subentry) > 0: if len(subentry) > 0:
subentry2 = icont[1:] subentry2 = icont[1:]