Fix widemargins a4 convertion.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10372 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
José Matox 2005-07-29 09:54:50 +00:00
parent 2479ac8f5f
commit 255c2c247f
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2005-07-29 José Matos <jamatos@lyx.org>
* lyx_1_4.py: Fix widemarginsa4 convertion.
2005-07-29 José Matos <jamatos@lyx.org>
* lyx_1_4.py: \end_header was added in 222, not 223

View File

@ -1526,9 +1526,9 @@ def convert_paperpackage(file):
packages = {'default':'none','a4':'none', 'a4wide':'a4', 'widemarginsa4':'a4wide'}
if len(split(file.header[i])) > 1:
paperpackage = split(file.header[i])[1]
file.header[i] = replace(file.header[i], paperpackage, packages[paperpackage])
else:
paperpackage = "default"
file.header[i] = replace(file.header[i], paperpackage, packages[paperpackage])
file.header[i] = file.header[i] + ' widemarginsa4'
def revert_paperpackage(file):