]> git.lyx.org Git - features.git/blobdiff - lib/lyx2lyx/lyxrevert_228.py
(Georg): fix lyx2lyx conversion of InsetBox.
[features.git] / lib / lyx2lyx / lyxrevert_228.py
index b02252022a76b652adeb3e00688e8970888e46ce..646b0f4d0dcb90f8a2ccaeb005e061eb65ca3459 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] == "status open"):
             lines[i] = "collapsed false"
         elif (lines[i] == "status collapsed" or