Fix a4 package removal when the preamble is already there.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10374 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
José Matox 2005-07-29 11:22:18 +00:00
parent 7bc6a713a2
commit a69c7f771d
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2005-07-29 José Matos <jamatos@lyx.org>
* lyx_1_4.py: Fix a4 package removal when the preamble is already there.
2005-07-29 José Matos <jamatos@lyx.org>
* lyx_1_4.py: Fix widemarginsa4 convertion.

View File

@ -1883,7 +1883,7 @@ def remove_paperpackage(file):
file.header[j:j]=["\\begin_preamble",
conv[paperpackage],"\\end_preamble"]
else:
file.header[j+1:j+1] = conv[paperpackage]
file.header[j+1:j+1] = [conv[paperpackage]]
del file.header[i]