]> git.lyx.org Git - features.git/commitdiff
(Georg): fix lyx2lyx conversion of InsetBox.
authorAngus Leeming <leeming@lyx.org>
Fri, 19 Dec 2003 10:22:02 +0000 (10:22 +0000)
committerAngus Leeming <leeming@lyx.org>
Fri, 19 Dec 2003 10:22:02 +0000 (10:22 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8267 a592a061-630c-0410-9148-cb99ea01b6c8

lib/lyx2lyx/ChangeLog
lib/lyx2lyx/lyxconvert_227.py
lib/lyx2lyx/lyxrevert_228.py

index a0bf0c0ea73bea784af8c1b29c12a81da50913d2..6f17be177431de11fb306a37801d2e326218d3b7 100644 (file)
@@ -1,3 +1,8 @@
+2003-12-18  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
+
+       * lyxrevert_228.py: fix box status conversion
+       * lyxconvert_227.py: ditto
+
 2003-12-16  José Matos  <jamatos@lyx.org>
 
        * lyxrevert_228.py: fix sys import.
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"):
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