From 41c028cce511ec3644bcf24ffcb1ea0ac42d0262 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Sun, 12 Oct 2008 08:58:42 +0000 Subject: [PATCH] * lyx2lyx/lyx_1_6.py: - fix conversion of empty index insets. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26859 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/lyx2lyx/lyx_1_6.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/lyx2lyx/lyx_1_6.py b/lib/lyx2lyx/lyx_1_6.py index d87d84d18f..87d0d4b4a4 100644 --- a/lib/lyx2lyx/lyx_1_6.py +++ b/lib/lyx2lyx/lyx_1_6.py @@ -1071,10 +1071,11 @@ def convert_latexcommand_index(document): 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", ""] + \ -- 2.39.2