W3C home > Mailing lists > Public > www-validator@w3.org > May 2001

Re: Modified normalize_newlines to work on PC and Mac, too.

From: Terje Bless <link@tss.no>
Date: Wed, 23 May 2001 02:46:16 +0200
To: W3C Validator <www-validator@w3.org>
Message-ID: <20010523030538-b01010701-a248a1db@192.168.1.6>
On 23.05.01 at 09:02, Martin Duerst <duerst@w3.org> wrote:

>I'm not sure the details in this mail are appropriate for this
>list, please just tell me if you get bored :-).

<voice type="pained">Please!</> If that's enough to bore people,
they would have lynched me a long time ago. :-)


>Start   Mac     PC      Unix
>CRLF    CR      CRCRLF  LF

ITYM

 CRLF    CR      CRLFCR  LF
                 ^^^^^^
non?


>LF      LF      LF      LF
         ^^
Oh darn! I /knew/ I hadn't got that one figured out properly. Good thing
the Validator doesn't run on Mac OS yet... :-)


>sub normalize_newlines {return [split /\015\012?|\012/, shift]};
>
>but once we are here, we might be able to get rid of the subroutine
>altogether.

I *like*! :-)
Received on Tuesday, 22 May 2001 21:05:45 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:13:58 GMT