small fixes to minipages convertions and retroversions.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10334 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
José Matox 2005-07-18 18:37:05 +00:00
parent f70191cc10
commit 7b8d863cb3
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2005-07-18 José Matos <jamatos@lyx.org>
* lyx_1_4.py (convert_minipage, convert_frameless_box): small
fixes to minipages convertions and retroversions.
2005-07-18 José Matos <jamatos@lyx.org> 2005-07-18 José Matos <jamatos@lyx.org>
* lyx_1_4.py (convert_french): fix two typos (Thanks to Georg Baum). * lyx_1_4.py (convert_french): fix two typos (Thanks to Georg Baum).

View File

@ -855,7 +855,7 @@ def convert_minipage(file):
if file.body[i][:6] == "height": if file.body[i][:6] == "height":
height = file.body[i][6:] height = file.body[i][6:]
# test for default value of 221 and convert it accordingly # test for default value of 221 and convert it accordingly
if height == ' "0pt"': if height == ' "0pt"' or height == ' "0"':
height = ' "1pt"' height = ' "1pt"'
del file.body[i] del file.body[i]
else: else:
@ -1112,7 +1112,6 @@ def convert_frameless_box(file):
if (params['use_parbox'] != '0' or if (params['use_parbox'] != '0' or
params['has_inner_box'] != '1' or params['has_inner_box'] != '1' or
params['special'] != 'none' or params['special'] != 'none' or
inner_pos[params['inner_pos']] != pos[params['position']] or
params['height_special'] != 'totalheight' or params['height_special'] != 'totalheight' or
len2value(params['height']) != 1.0): len2value(params['height']) != 1.0):