+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.
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"):
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