- From: Karl Dubost via cvs-syncmail <cvsmail@w3.org>
- Date: Thu, 14 Dec 2006 03:21:42 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2002/css-validator/org/w3c/css/css In directory hutz:/tmp/cvs-serv32714 Modified Files: StyleSheetGeneratorHTML2.java Log Message: adding div for warning and error section Index: StyleSheetGeneratorHTML2.java =================================================================== RCS file: /sources/public/2002/css-validator/org/w3c/css/css/StyleSheetGeneratorHTML2.java,v retrieving revision 1.34 retrieving revision 1.35 diff -u -d -r1.34 -r1.35 --- StyleSheetGeneratorHTML2.java 14 Dec 2006 03:13:16 -0000 1.34 +++ StyleSheetGeneratorHTML2.java 14 Dec 2006 03:21:40 -0000 1.35 @@ -263,6 +263,7 @@ try { if (errors.getErrorCount() != 0) { + ret.append("\n<div class='errors-section-all'>"); int i = 0; for (CssError[] error = errors.getErrors(); i < error.length; i++) { Exception ex = error[i].getException(); @@ -320,8 +321,9 @@ if (open) { ret.append("\n</table>"); } + ret.append("\n<!--end of individual error section--></div>"); } - ret.append("\n<!--end of warning section--></div>"); + ret.append("\n<!--end of all error sections--></div>"); out.println(ret.toString()); } catch (Exception e) { @@ -340,6 +342,7 @@ try { if (warnings.getWarningCount() != 0) { int i = 0; + ret.append("\n<div class='warnings-section-all'>"); warnings.sort(); for (Warning[] warning = warnings.getWarnings(); i < warning.length; i++) { @@ -350,7 +353,7 @@ ret.append("\n</table></div>"); } oldSourceFile = warn.getSourceFile(); - ret.append("\n<div class='warning-section'><h3>URI : <a href=\""); + ret.append("\n<div class='warnings-section'><h3>URI : <a href=\""); ret.append(oldSourceFile).append("\">"); ret.append(oldSourceFile).append("</a></h3><table>"); open = true; @@ -386,8 +389,9 @@ if (open) { ret.append("\n</table>"); } - ret.append("</div>"); + ret.append("\n<!--end of individual warning section--></div>"); } + ret.append("\n<!--end of all warning sections--></div>"); out.println(ret.toString()); } catch (Exception e) { out.println(ac.getMsg().getGeneratorString("request"));
Received on Thursday, 14 December 2006 03:21:55 UTC