lyx_1_5.py: better method to write preamble, suggested by Georg

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18161 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Uwe Stöhr 2007-05-01 21:14:03 +00:00
parent 45dd396555
commit 286463df06

View File

@ -1307,7 +1307,7 @@ def revert_armenian(document):
i = i + 1
# set the armtex entry as the first preamble line
if k != -1:
document.preamble[0] = "\\usepackage{armtex}" + "\r" + document.preamble[0][0:]
document.preamble[0:0] = ["\\usepackage{armtex}"]
# create the preamble when it doesn't exist
else:
document.preamble.append('\\usepackage{armtex}')