logo       

Re: Joining class names: msg#00022

web.html-tidy.devel

Subject: Re: Joining class names

Hi Prashanth,

Joining CSS class names with an underscore is the behavior of the TidyLib
library and not specific to the any given wrapper.

I seem to remember other folks also asking for space separated names, as
allowed by CSS. So I am forwarding your note to the list for comments.

take it easy,
Charlie


At 06:10 PM 6/26/2006 -0400, Prashanth T S wrote:
>Hi,
> I was using your Tidy with .net and encountered the following
> problem. Can you please let me know if there is a work around for this.
>
>My Source HTML contains
>
><p class=MsoNormal
>style='margin-left:.6in;text-align:justify;text-indent:-.6in;
>line-height:95%;'>
>
>I want to clean the document using Tidy and I want all styles moved to the
>top and classes created for them.
>I have made the following configuration settings.
>doc.SetOptBool (TidyATL.TidyOptionId.TidyDoctypeMode, 1);
>doc.SetOptBool(TidyATL.TidyOptionId.TidyXhtmlOut, 1);
>doc.SetOptBool(TidyATL.TidyOptionId.TidyNumEntities, 0);
>doc.SetOptBool(TidyATL.TidyOptionId.TidyQuoteNbsp , 1);
>doc.SetOptValue(TidyATL.TidyOptionId.TidyCSSPrefix, cssText);
>doc.SetOptValue(TidyATL.TidyOptionId.TidyCharEncoding, "ascii");
>doc.SetOptBool(TidyATL.TidyOptionId.TidyForceOutput , 1);
>doc.SetOptBool(TidyATL.TidyOptionId.TidyQuoteMarks, 0);
>doc.SetOptBool(TidyATL.TidyOptionId.TidyQuoteAmpersand, 1);
>doc.SetOptBool(TidyATL.TidyOptionId.TidyNCR , 0);
>doc.SetOptBool(TidyATL.TidyOptionId.TidyShowWarnings, 1);
>doc.SetOptBool(TidyATL.TidyOptionId.TidyJoinClasses, 1);
>doc.SetOptBool(TidyATL.TidyOptionId.TidyJoinStyles , 1);
>doc.SetOptBool(TidyATL.TidyOptionId.TidyMark, 0);
>doc.SetOptBool(TidyATL.TidyOptionId.TidyLowerLiterals, 0);
>doc.SetOptBool(TidyATL.TidyOptionId.TidyMakeClean , 1);
>
>After passing through Tidy, with the following configuration settings
>where in I want my styles on top and classes created for them
>
>I get the following output
><p class="MsoNormal_c2">
>where
><style type="text/css">
>p.c2 {margin-left:.6in;text-align:justify;text-indent:-.6in; line-height:95%;}
></style>
>
>I do not want the two classes to be joined by an UNDERSCORE, I just want
>them separated by a space like
><p class="MsoNormal c2">
>
>Please let me know if there is any workaround for this. Any help would be
>highly appreciated.
>
>Thanks
>Prashanth


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise