From: Georg Baum Date: Mon, 2 Mar 2015 19:57:26 +0000 (+0100) Subject: Fix stupid copy-paste error X-Git-Tag: 2.2.0alpha1~1249 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=c0041e7fa51ea7f2d7e528e416e6d80654f583bf;p=features.git Fix stupid copy-paste error Now the conversion to 2.1.x works again --- 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