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

Re: <SCRIPT> indentation

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Thu, 10 Oct 2002 00:37:47 +0200
To: Olivier Tache <Olivier.Tache@imag.fr>
Cc: html-tidy@w3.org
Message-ID: <3db2af74.7131464@smtp.bjoern.hoehrmann.de>

* Olivier Tache wrote:
>I have some troubles when parsing an HTML file containing a <SCRIPT> tag
>with JTidy: Tidy changes all the indentation of the script, thus this
>one becomes incorrect. For example, for the input:
>
>
>function MM_findObj(n, d) { //v4.0
>  var p,i,x;  if(!d) d=document;
>...
>}
>
>the ouput is:
>
>
>function 
>	MM_findObj(n, d) { //v4.0 var p,i,x;  if(!d) d=document;
>...
>}
>
>Now, the declaration is before a comment, so p, i and x doesn't exist...
>
>Is there an option that allows to keep the original indentation?

I cannot reproduce this in HTML Tidy, hence you should report this to
the JTidy bug tracker at

  http://sourceforge.net/tracker/?group_id=13153&atid=113153

regards.
Received on Wednesday, 9 October 2002 18:37:20 UTC

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