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

Re: do and read-line in MrEd.



On Jul  2, Jordan Katz wrote:
>    (read-line sin)
>    (read-line sin)  ;; once more for the blank line
> ...
> 
> I cannot figure out where the preceding empty lines come from, or how
> to fix it.  Can someone please advise?

You're sing Gnus, so I guess chances are high that you're on Unix...
read-line tries to read a Unix-line, terminated by a LF, but HTTP uses
CR-LF for line separators.  Use (read-line sin 'any) and it will
probably work fine.  (BTW, the contents can have any kind of line
terminators.)

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                  http://www.barzilay.org/                 Maze is Life!