mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-26 06:15:16 +00:00
lyx_1_4.lyx (paperpackage): Fix empty paperpackage case.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10141 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
178897b091
commit
7ed89fefb1
@ -1,3 +1,7 @@
|
||||
2005-07-06 José Matos <jamatos@lyx.org>
|
||||
|
||||
* lyx_1_4.lyx (paperpackage): Fix empty paperpackage case.
|
||||
|
||||
2005-07-06 José Matos <jamatos@lyx.org>
|
||||
|
||||
* LyX.py (warning): Prefix warnings with label "Warning: ".
|
||||
|
@ -1522,7 +1522,10 @@ def convert_paperpackage(file):
|
||||
return
|
||||
|
||||
packages = {'default':'none','a4':'none', 'a4wide':'a4', 'widemarginsa4':'a4wide'}
|
||||
paperpackage = split(file.header[i])[1]
|
||||
if len(split(file.header[i])) > 1:
|
||||
paperpackage = split(file.header[i])[1]
|
||||
else:
|
||||
paperpackage = "default"
|
||||
file.header[i] = replace(file.header[i], paperpackage, packages[paperpackage])
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user