From: Fabrizio G. <fgi...@sa...> - 2004-04-10 15:46:53
|
<HTML><HEAD><TITLE>[Jtidy-devel] quiet/warning modes</TITLE></HEAD> <BODY> <DIV id=3DidOWAReplyText39955 dir=3Dltr> <DIV dir=3Dltr><FONT face=3DArial color=3D#000000 size=3D2>I will check it:= one ot the target of the following release should be simplify the use of j= tidy into other application, so unwanted output to sdout/stderr should be a= bsolutely avoided.</FONT></DIV> <DIV dir=3Dltr><FONT face=3DArial color=3D#000000 size=3D2>I'm in the way o= f reorganizing the way messages are written and I will fix summary too. In = the next release users will be able to avoid writing to out at all and plug= ging a message listener to easily read warning in their application</FONT><= /DIV> <DIV dir=3Dltr><FONT face=3DArial size=3D2></FONT> </DIV> <DIV dir=3Dltr><FONT face=3DArial size=3D2>fabrizio</FONT></DIV></DIV> <DIV dir=3Dltr><BR> <HR tabIndex=3D-1> <FONT face=3DTahoma size=3D2><B>From:</B> Brian W. Young<BR><B>Sent:</B> Th= u 08/04/2004 6.45<BR><B>To:</B> jti...@li...<BR><B>Sub= ject:</B> [Jtidy-devel] quiet/warning modes<BR></FONT><BR></DIV> <DIV> <P><FONT size=3D2>Hi,</FONT> </P> <P><FONT size=3D2>I've been using a self-patched version of JTidy for</FONT= > <BR><FONT size=3D2>some time so I'm so glad to see the project is being</= FONT> <BR><FONT size=3D2>maintained again.</FONT> </P> <P><FONT size=3D2>One of the patches I had to add was to suppress a lot</FO= NT> <BR><FONT size=3D2>of text getting pumped to system err or out, even wh= en</FONT> <BR><FONT size=3D2>I've set quiet to true and turned warnings off= . These</FONT> <BR><FONT size=3D2>are extremely verbose messages tell= ing me why my HTML</FONT> <BR><FONT size=3D2>is bad, web sites to visit, et= c. Unfortunately I</FONT> <BR><FONT size=3D2>didn't document my patch= but I think the problem was: </FONT></P> <P><FONT size=3D2>this.report.errorSummary(lexer);</FONT> <BR><FONT size=3D= 2>at the end of Tidy.parse() </FONT></P> <P><FONT size=3D2>because this line will execute no matter if quiet mode</F= ONT> <BR><FONT size=3D2>is on or not. I think it should be wrapped in= an if</FONT> <BR><FONT size=3D2>statement, no?</FONT> </P> <P><FONT size=3D2>Thanks,</FONT> <BR><FONT size=3D2>Brian</FONT> </P><BR><B= R><BR> <P><FONT size=3D2>=3D=3D=3D=3D=3D</FONT> <BR><FONT size=3D2>-- Who is John = Galt? --</FONT> </P><BR> <P><FONT size=3D2>-------------------------------------------------------</= FONT> <BR><FONT size=3D2>This SF.Net email is sponsored by: IBM Linux Tutor= ials</FONT> <BR><FONT size=3D2>Free Linux tutorial presented by Daniel Robb= ins, President and CEO of</FONT> <BR><FONT size=3D2>GenToo technologies. Le= arn everything from fundamentals to system</FONT> <BR><FONT size=3D2>admini= stration.<A href=3D"http://ads.osdn.com/?ad_id=3D1470&alloc_id=3D3638&a= mp;op=3Dclick" target=3D_blank>http://ads.osdn.com/?ad_id=3D1470&alloc_= id=3D3638&op=3Dclick</A></FONT> <BR><FONT size=3D2>____________________= ___________________________</FONT> <BR><FONT size=3D2>Jtidy-devel mailing l= ist</FONT> <BR><FONT size=3D2>Jti...@li...</FONT> <BR>= <FONT size=3D2><A href=3D"https://lists.sourceforge.net/lists/listinfo/jtid= y-devel" target=3D_blank>https://lists.sourceforge.net/lists/listinfo/jtidy= -devel</A></FONT> </P></DIV></BODY></HTML> |