]> git.lyx.org Git - features.git/blobdiff - lib/lyx2lyx/lyxconvert_227.py
(Georg): fix lyx2lyx conversion of InsetBox.
[features.git] / lib / lyx2lyx / lyxconvert_227.py
index 056f7f153f4aba58cc5b683d927d91dd69f57b3c..89c5fa907f50832239df8e5b5d1990d4a92990e1 100644 (file)
@@ -33,8 +33,12 @@ def convert_collapsable(lines):
         if i == -1:
             break
 
-        # We are interested in the next line
-        i = i + 1
+        if lines[i][:16] == "\\begin_inset Box":
+            # Skip box parameters
+            i = i + 10
+        else:
+            # We are interested in the next line
+            i = i + 1
         if (lines[i] == "collapsed false"):
             lines[i] = "status open"
         elif (lines[i] == "collapsed true"):