[Htmlparser-user] euh ... another fix
Brought to you by:
derrickoswald
From: R. <ced...@fr...> - 2002-07-17 11:09:59
|
Hello, To test with: www.revues.org/calenda/articles/1379.html ... <br> <>PROGRAMME</b><br> .. => String Index out of range : 0 In HTMLTagScanner.java: ------------------------------------- public static String absorbLeadingBlanks(String s) { String temp = new String(s); //here we add a check for "temp.length()!=0" to prevent a bug with empty mark out. while (temp.length()!=0 && temp.charAt(0)==' ') { temp = temp.substring(1,temp.length()); } return temp; } I know my bugs report and my fixes are not useful (because bugs quasi never happen) but they contribute to increase the software stability. I hope my contribution help you. Regards, Cedric. |