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

<SCRIPT> indentation

From: Olivier Tache <Olivier.Tache@imag.fr>
Date: 12 Aug 2002 16:44:45 +0200
To: html-tidy@w3.org
Message-Id: <1029163485.1477.16.camel@iaido.imag.fr>

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?

Thanks,
Olivier
Received on Monday, 12 August 2002 10:28:00 GMT

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