fix bug 2001

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10407 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
José Matox 2005-08-29 18:43:15 +00:00
parent 3b10e9a9e5
commit a0c546831e
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2005-08-18 José Matos <jamatos@lyx.org>
* lyx_1_4.py (remove_paperpackage): fix bug 2001.
2005-08-18 José Matos <jamatos@lyx.org>
* LyX.py (read, write): add preamble as data member of LyX_Base,

View File

@ -1866,7 +1866,7 @@ def remove_paperpackage(file):
conv = {"a4":"\\usepackage{a4}","a4wide": "\\usepackage{a4wide}",
"widemarginsa4": "\\usepackage[widemargins]{a4}"}
# for compatibility we ensure it is the first entry in preamble
file.preamble[0:0] = conv[paperpackage]
file.preamble[0:0] = [conv[paperpackage]]
del file.header[i]