W3C home > Mailing lists > Public > html-tidy@w3.org > July to September 1999

bug in tidy26jul99

From: Vlad Harchev <hvv@hippo.ru>
Date: Thu, 5 Aug 1999 20:52:09 +0500 (SAMST)
To: html-tidy@w3.org
Message-ID: <Pine.LNX.4.10.9908052043020.1601-100000@localhost.localdomain>
 Tidy has incorrect behaviour when indenting piece containing PRE.

Original file:

<pre><b>
      FOO     BAR   A
     FOO1   FBAR1   B
</b></pre>

(the cells' content is right-aligned)

After 'tidy -i file.html > filei.html', indented file contains (headers
stripped):

<pre>
<b>     FOO     BAR   A
     FOO1   FBAR1   B
</b>
</pre>

But it should contain

<pre>
<b>      FOO     BAR   A
     FOO1   FBAR1   B
</b>
</pre>

since '<b>' is 3-character long.
Substitute <b> with <strong> and watch results - the 1st row of the table will
lack one space character.

 Best viewed with lynx.
 
 Best regards,
  -Vlad
Received on Saturday, 7 August 1999 08:56:38 GMT

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