Re: comments problem

Hi Lilian,

Thanks for the report.

Quick workaround: set wraplen to 78

Longer term fix would be for Tidy to turn off wrapping altogether for 
scripts.  You can't do this w/ options.  Sorry.

take it easy,
Charlie


At 11:41 AM 2/20/2003 -0300, Lilian Salazar wrote:
>original code:
><script language="JavaScript" type="text/javascript">
>function MM_swapImage() { //v3.0
>var i,j=0,x,a=MM_swapImage.arguments;
>document.MM_sr=new Array;
>for(i=0;i<(a.length-2);i+=3)
>   if ((x=MM_findObj(a[i]))!=null){
>     document.MM_sr[j++]=x;
>     if(!x.oSrc) x.oSrc=x.src;
>     x.src=a[i+2];}
>   }
></script>
>
>result:
>             <script language="JavaScript" type="text/javascript">function 
> MM_swapImage() {
>                 //v3.0     var i,j=0,x,a=MM_swapImage.arguments;
>                 document.MM_sr=new Array;
>                 for(i=0;i<(a.length-2);i+=3)   if
>                 ((x=MM_findObj(a[i]))!=null){     document.MM_sr[j++]=x;
>                 if(!x.oSrc) x.oSrc=x.src;      x.src=a[i+2];}    }
>               </script>
>
>configuration:
>WrapScriptlets: false
>WrapSection: true
>WrapAttVals: false
>LiteralAttribs: false
>tabsize: 4
>IndentAttributes: true
>spaces: 2
>wraplen: 68
>IndentContent: false
>SmartIndent: false
>RawOut: false
>QuoteMarks: false
>QuoteNbsp: true
>WrapAttVals: false
>IndentAttributes: true
>EncloseBodyText: false
>EncloseBlockText: false
>LiteralAttribs: false
>
>what plus I add?
>
>Thanks!!
>
>Lilian
>
>P.D.: Obvious if use /* v3.0 */ is no problem, but it is not the idea

Received on Thursday, 20 February 2003 10:03:48 UTC