[Htmlparser-developer] Fixed HTMLTagScanner bug [Was: euh ... another fix]
Brought to you by:
derrickoswald
From: Somik R. <so...@ya...> - 2002-07-19 09:04:17
|
Hi Cedric Thanks yet again for a good bug report. This fix has been = incorporated. As of now, only one test case fails - that of the unended = title tag. Ive got to duplicate some stuff in HTMLTag into HTMLEndTag. Regards, Somik ----- Original Message -----=20 From: C=E9dric Rosa=20 To: htm...@li...=20 Sent: Wednesday, July 17, 2002 8:10 PM Subject: [Htmlparser-user] euh ... another fix Hello, To test with: www.revues.org/calenda/articles/1379.html ... <br> <>PROGRAMME</b><br> .. =3D> String Index out of range : 0 In HTMLTagScanner.java: ------------------------------------- public static String absorbLeadingBlanks(String s) { String temp =3D new String(s); file://here we add a check for "temp.length()!=3D0" to prevent a = bug with empty=20 mark out. while (temp.length()!=3D0 && temp.charAt(0)=3D=3D' ') { temp =3D temp.substring(1,temp.length()); } return temp; } I know my bugs report and my fixes are not useful (because bugs quasi = never=20 happen) but they contribute to increase the software stability. I hope = my=20 contribution help you. Regards, Cedric. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Htmlparser-user mailing list Htm...@li... https://lists.sourceforge.net/lists/listinfo/htmlparser-user |