Re: Character Data

Murray Maloney (murray@sco.COM)
Thu, 22 Sep 94 15:38:16 EDT

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