W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2001

Re: Question about pre tag transformation

From: Richard A. O'Keefe <ok@atlas.otago.ac.nz>
Date: Tue, 27 Feb 2001 16:49:42 +1300 (NZDT)
Message-Id: <200102270349.QAA06367@atlas.otago.ac.nz>
To: hokamoto@mse.mei.co.jp, html-tidy@w3.org
Hiroyuki Okamoto is worried about Tidy changing
	<pre>AAAAAAA
	</pre>
to	
	<pre>
	AAAAAAA
	</pre>
	
He should not be.  HTML is an application of SGML, and
linebreaks immediately after start tags
or immediately before end tags
ARE NOT REALLY THERE as far as SGML is concerned.

The two examples are required to behave identically.  What's more,
they are both identical to
	<pre>AAAAAAA</pre>
and
	<pre>
	AAAAAAA</pre>

XML has different rules, so if this were an XML to XML transformation
it would be a real problem.  But for HTML it is not.
Received on Monday, 26 February 2001 22:50:25 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:45 GMT