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

Re: <HR> in <PRE>

From: Klaus Johannes Rusch <KlausRusch@atmedia.net>
Date: Wed, 23 Jan 2002 08:34:37 -0100
Message-ID: <3C4E83AD.50580B0C@atmedia.net>
To: "Richard A. O'Keefe" <ok@atlas.otago.ac.nz>
CC: html-tidy@w3.org
"Richard A. O'Keefe" wrote:
> 
> A while back there was a short thread about someone who was using a
> genealogy program that insisted on putting <HR> tags inside <PRE>.
> 
> I tried the following strategy:
> replace <HR ...> by </PRE><HR ...><PRE> whenever it occurred inside <PRE>.
> Ideally, one would like to copy the attributes from the original <PRE>
> element onto the new one. ...
> 
> I would like, therefore, to request that Tidy be modified to do this.

There is a problem with this approach:

<pre>
text
<hr>
text
</pre>

and

<pre>
text
</pre>
<hr>
<pre>
text
</pre>

are generally rendered quite differently -- pre is a block level
element, and browsers add whitespace before/after block level elements.


-- 
Klaus Johannes Rusch
KlausRusch@atmedia.net
http://www.atmedia.net/KlausRusch/
Received on Wednesday, 23 January 2002 04:35:24 GMT

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