[LyX/master] Amend b8502a3ea2735c4
Juergen Spitzmueller
spitz at lyx.org
Thu Nov 3 05:21:33 UTC 2022
commit e316e21aa18ae0d0f0b2a6d154645f559e74f692
Author: Juergen Spitzmueller <spitz at lyx.org>
Date: Thu Nov 3 07:14:14 2022 +0100
Amend b8502a3ea2735c4
---
lib/lyx2lyx/lyx_2_4.py | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/lib/lyx2lyx/lyx_2_4.py b/lib/lyx2lyx/lyx_2_4.py
index eefd283..73826a5 100644
--- a/lib/lyx2lyx/lyx_2_4.py
+++ b/lib/lyx2lyx/lyx_2_4.py
@@ -4508,8 +4508,11 @@ def revert_index_macros(document):
if xiimple == -1:
document.warning("Malformed LyX document: Can't find end of index macro inset plain layout at line %d" % i)
else:
- xicont = document.body[xiimpl:xiimple]
- xxicont = document.body[xiimple+1:xiim] + document.body[xiime+1:iimple]
+ # the sortkey
+ xicont = document.body[xiimpl+1:xiimple]
+ # everything before ................... or after
+ xxicont = document.body[iimpl+1:xiim] + document.body[xiime+1:iimple]
+ # construct the latex sequence
icont = xicont + put_cmd_in_ert("@") + xxicont[1:]
if len(subentry) > 0:
subentry2 = icont[1:]
More information about the lyx-cvs
mailing list