Re: Character Data

Corprew Reed (corp@cshl.org)
Thu, 22 Sep 94 14:45:14 EDT

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