W3C home > Mailing lists > Public > html-tidy@w3.org > October to December 2002

Re: tidy mis-handles <pre> text containing <br>

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Thu, 10 Oct 2002 00:27:24 +0200
To: Charles Reitzel <creitzel@rcn.com>
Cc: html-tidy@w3.org
Message-ID: <3dabac23.6282053@smtp.bjoern.hoehrmann.de>

* Charles Reitzel wrote:
>In my test, the left-right alignment (the primary reason for using <pre>) 
>was messed up.  The Pre-Tidy sample lined up nicely in both IE6 and NS6.

But differently, IE 6.0 ignores sub-sequent <br>s while Opera 6.0 and
Mozilla 1.0 insert a newline wherever they find a <br>.

>The input has lots of tabs and _no_ newlines. So a) I think the code is not 
>adding the right number of spaces and b) any time we add a newline where 
>there wasn't one before, perhaps we should take away a <br>.  Either that, 
>or do not add newlines at all.

The http://tidy.sourceforge.net/docs/quickref.html is wrong, while
tab-size defaults to 8 (changed after the mentioned discussion) it is
documented as defaulting to 4. If you replace all <br> with \n Tidy
won't mess up anything hence that's where to look at.
Received on Wednesday, 9 October 2002 18:27:17 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 23:39:48 UTC