(Georg): fix lyx2lyx conversion of InsetBox.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8267 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2003-12-19 10:22:02 +00:00
parent 2b21af9a42
commit 8962f163c5
3 changed files with 17 additions and 4 deletions

View 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.

View 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"):

View 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