Re: <HR> in <PRE>

"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 UTC