Jan Engelhardt wrote: > See below. I see. lyx2lyx produces wrong output for empty index insets, because these do not have a "name" tag.
The attached patch seems to fix it for me. José, Richard, did I miss something? Jürgen
Index: lib/lyx2lyx/lyx_1_6.py =================================================================== --- lib/lyx2lyx/lyx_1_6.py (Revision 26439) +++ lib/lyx2lyx/lyx_1_6.py (Arbeitskopie) @@ -1071,10 +1071,11 @@ m = r1.match(document.body[i + 2]) if m == None: document.warning("Unable to match: " + document.body[i+2]) - i += 1 - continue - fullcontent = m.group(1) - linelist = latex2lyx(fullcontent) + # this can happen with empty index insets! + linelist = [""] + else: + fullcontent = m.group(1) + linelist = latex2lyx(fullcontent) #document.warning(fullcontent) linelist = ["\\begin_inset Index", "status collapsed", "\\begin_layout Standard", ""] + \