- fix conversion of empty index insets.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26859
a592a061-630c-0410-9148-
cb99ea01b6c8
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", ""] + \