Re: Character Data

Murray Maloney <murray@sco.COM>
Date: Thu, 22 Sep 94 15:38:16 EDT
Message-id: <9409221500.aa01438@dali.scocan.sco.COM>
Reply-To: murray@sco.COM
Originator: html-wg@oclc.org
Sender: html-wg@oclc.org
Precedence: bulk
From: Murray Maloney <murray@sco.COM>
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)
Testing on Mosaic 2.4 shows that CR has no effect inside <PRE>.
I have no idea where I got the notion that it did.

So, should the spec say that CR is a word space in all contexts
except for <PRE> in which it has no effect?

> 
> @ 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
> -------------------------------------+----------------------------------------