From c0041e7fa51ea7f2d7e528e416e6d80654f583bf Mon Sep 17 00:00:00 2001 From: Georg Baum Date: Mon, 2 Mar 2015 20:57:26 +0100 Subject: [PATCH] Fix stupid copy-paste error Now the conversion to 2.1.x works again --- lib/lyx2lyx/lyx_2_2.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/lyx2lyx/lyx_2_2.py b/lib/lyx2lyx/lyx_2_2.py index 59f32c495c..82f12e26cb 100644 --- a/lib/lyx2lyx/lyx_2_2.py +++ b/lib/lyx2lyx/lyx_2_2.py @@ -615,6 +615,7 @@ def revert_phrases(document): i = 0 while i < len(document.body): + words = document.body[i].split() if len(words) > 1 and words[0] == "\\begin_inset" and \ words[1] in ["CommandInset", "External", "Formula", "Graphics", "listings"]: # see convert_phrases -- 2.39.2