- From: Karl Dubost via cvs-syncmail <cvsmail@w3.org>
- Date: Thu, 14 Dec 2006 06:15:16 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2002/css-validator/org/w3c/css/css In directory hutz:/tmp/cvs-serv13748 Modified Files: StyleSheetGeneratorHTML2.java Log Message: fixing the codecontext for errors Index: StyleSheetGeneratorHTML2.java =================================================================== RCS file: /sources/public/2002/css-validator/org/w3c/css/css/StyleSheetGeneratorHTML2.java,v retrieving revision 1.42 retrieving revision 1.43 diff -u -d -r1.42 -r1.43 --- StyleSheetGeneratorHTML2.java 14 Dec 2006 06:02:45 -0000 1.42 +++ StyleSheetGeneratorHTML2.java 14 Dec 2006 06:15:13 -0000 1.43 @@ -194,9 +194,9 @@ } } if (buf.length() != 0) {ret.append(buf);} - ret.append("</td>"); - ret.append("\n <td class='message'>"); } + ret.append("</td>"); + ret.append("\n <td class='message'>"); String name = error.getProperty(); if ((name != null) && (getURLProperty(name) != null)) { ret.append(ac.getMsg().getGeneratorString("property")); @@ -265,7 +265,7 @@ if (ex instanceof FileNotFoundException) { - ret.append("<td class='nocontext'> </td><td class='notfound'> "); + ret.append("<td class='nocontext'> </td><td class='notfound'> "); ret.append(ac.getMsg().getGeneratorString("not-found")); ret.append(ex.getMessage()); @@ -273,24 +273,24 @@ produceParseException((CssParseException) ex, ret); } else if (ex instanceof InvalidParamException) { - ret.append("<td class='nocontext'> </td><td class='invalidparam'> "); + ret.append("<td class='nocontext'> </td><td class='invalidparam'> "); ret.append(queryReplace(ex.getMessage())); } else if (ex instanceof IOException) { String stringError = ex.toString(); int index = stringError.indexOf(':'); ret.append(stringError.substring(0, index)); - ret.append("<td class='nocontext'> </td><td class='io'> "); + ret.append("<td class='nocontext'> </td><td class='io'> "); ret.append(ex.getMessage()); } else if (error[i] instanceof CssErrorToken) { CssErrorToken terror = (CssErrorToken) error[i]; - ret.append("<td class='nocontext'> </td><td class='errortoken'> "); + ret.append("<td class='nocontext'> </td><td class='errortoken'> "); ret.append(terror.getErrorDescription()).append(" : "); ret.append(terror.getSkippedString()); } else { - ret.append("<td class='nocontext'> </td><td class='unkownerror'>Unknown Error"); + ret.append("<td class='nocontext'> </td><td class='unkownerror'>Unknown Error"); ret.append(ex); if (ex instanceof NullPointerException) { // ohoh, a bug
Received on Thursday, 14 December 2006 06:15:25 UTC