gnu-music-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Other 1.3.141 nastiness...


From: Jan Nieuwenhuizen
Subject: Re: Other 1.3.141 nastiness...
Date: 26 Mar 2001 17:31:25 +0200
User-agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.7

"Shamus" <address@hidden> writes:

>     linewidth = extra['linewidth'][0]
> IndexError: list index out of range

Thanks, this will be fixed in 144.  You can edit ly2dvi according to:

--- scripts/ly2dvi.py~  Sun Mar 25 23:51:00 2001
+++ scripts/ly2dvi.py   Mon Mar 26 14:11:23 2001
@@ -388,9 +392,10 @@
                orientation = extra['orientation'][0]
 
        # set sane geometry width (a4-width) for linewidth = -1.
-       linewidth = extra['linewidth'][0]
-       if linewidth < 0:
+       if not extra['linewidth'] or extra['linewidth'][0] < 0:
                linewidth = 597
+       else:
+               linewidth = extra['linewidth'][0]
        s = s + 
'\geometry{width=%spt%s,headheight=2mm,headsep=0pt,footskip=2mm,%s}\n' % 
(linewidth, textheight, orientation)
 
        s = s + r'''

-- 
Jan Nieuwenhuizen <address@hidden> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien       | http://www.lilypond.org




reply via email to

[Prev in Thread] Current Thread [Next in Thread]