W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2003

Re: comments problem

From: Charles Reitzel <creitzel@rcn.com>
Date: Thu, 20 Feb 2003 10:13:13 -0500
Message-Id: <4.3.2.7.2.20030220101049.0288ae98@pop.rcn.com>
To: "Lilian Salazar" <liliansalazar@entelchile.net>
Cc: <html-tidy@w3.org>

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 GMT

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