W3C home > Mailing lists > Public > html-tidy@w3.org > April to June 2000

Tidy Error Report - Spaces around </code>

From: Jeff Hennick <jhennick@delphi.com>
Date: Fri, 7 Apr 2000 08:24:27 -0400 (EDT)
Message-Id: <4.3.0.20000406233913.00a612a0@pop.delphi.com>
To: html-tidy@w3.org
Dave Raggett,

Tidy changes the spacing around the </code>-tag.  This is important to me 
as the space width in normal, proportional spaced font is different, 
smaller, than that used in the monospaced font used for <code>.

Here is the original test file:
><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" 
>"http://www.w3.org/TR/REC-html40/loose.dtd">
><html>
><head>
><!-- Test of Tidy -->
><title>
></title>
></head>
><body>
>The<code> if </code> statement. {Before Tidy, has both ==spaces== inside 
>the code tags}
></body>
></html>

And afterTidy:

><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" 
>"http://www.w3.org/TR/REC-html40/loose.dtd">
><html>
><head>
><meta name="generator" content="HTML Tidy, see www.w3.org"><!-- Test of 
>Tidy -->     {Puts its meta on comment line}
><title></title>
></head>
><body>
>The<code> if</code> statement. {After Tidy, does NOT have end ==space== 
>inside the code tags}
></body>
></html>

The same thing happens with </samp>, and is bad for me for the same reason.

This is using:  vers 13th January 2000

Also, should the inserted <meta>-tag and preexisting comment be on the same 
line?

Jeff Hennick
JHennick@Delphi.Com
Received on Friday, 7 April 2000 11:45:29 GMT

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