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

Re: <HR> in <PRE>

From: Jeff Hennick <JHennick@mindspring.com>
Date: Sun, 03 Mar 2002 15:55:18 -0500
Message-Id: <5.1.0.14.0.20020303153242.00a3b3c0@mail.mindspring.com>
To: html-tidy@w3.org
"Graham Coward" <coward@alphalink.com.au> wrote about not being able to use 
<hr> inside <pre> without TIDY complaining.

TIDY is, of course, right here.

Graham, try a slight change to your HTML using <style> .

Add this to the <head>-section:

<style type="text/css">
<!--
.ms{font-family: monospace}
-->
</style>

Then change the <pre> to <div class="ms">, and the </pre> to </div>.  It 
now works, is legal HTML, and TIDY says so.

If your generator program won't do it, a simple filter program should be 
able to "fix" your files in bulk.

Jeff Hennick
Received on Sunday, 3 March 2002 15:58:25 GMT

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