Re: Character Data

Corprew Reed <corp@cshl.org>
Date: Thu, 22 Sep 94 14:45:14 EDT
Message-id: <CMM.0.90.4.780259432.reed@hades.cshl.org>
Reply-To: corp@cshl.org
Originator: html-wg@oclc.org
Sender: html-wg@oclc.org
Precedence: bulk
From: Corprew Reed <corp@cshl.org>
To: Multiple recipients of list <html-wg@oclc.org>
Subject: Re: Character Data
X-Listprocessor-Version: 6.0c -- ListProcessor by Anastasios Kotsikonas
X-Comment: HTML Working Group (Private)
@ What if a line is terminated by CRLF in PRE content? Does
@ that count as 1 linebreak or 2?
@ 
@ Corprew: could you run some tests?

I've got it clocked at 1 linebreak on Lynx, WinMosaic, and XMosaic,
and 2 linebreaks on MacWeb and MacMosaic.  WinWeb and DosLynx not
tested due to unavailability.  Tk/WWW crashed my X display, and ST/Web
(my level 0 client in ST/80, as if anyone cared) got 1. 

It also looks like the \r is effectively ignored on the ones that got
1 linebreak and treated the same as \n on the ones that got 2 when it
occurs by itself.

I used the output of this program to test it.  

main()
{
        printf("<pre>\n");
        printf("hello\n");
        printf("hello\r");
        printf("hello\n\r");
        printf("hello\r\n");
        printf("hello\n");
        printf("hello           \rhello          \nhello          \r\nhello");
        printf("</pre>");
        printf("test ends");
}

--Corp


-------------------------------------+----------------------------------------
--+           ---O    | |      | "   |       corp@cshl.org
  |    ---     /      | |  --- |\    |       reed@cshl.org
--+           /        /       |     |       corp@freenet.hut.fi
-------------------------------------+----------------------------------------