<SCRIPT> indentation

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 UTC