- From: Karl Dubost via cvs-syncmail <cvsmail@w3.org>
- Date: Thu, 14 Dec 2006 06:19:09 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2002/css-validator/org/w3c/css/css In directory hutz:/tmp/cvs-serv17006 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.43 retrieving revision 1.44 diff -u -d -r1.43 -r1.44 --- StyleSheetGeneratorHTML2.java 14 Dec 2006 06:15:13 -0000 1.43 +++ StyleSheetGeneratorHTML2.java 14 Dec 2006 06:19:06 -0000 1.44 @@ -181,8 +181,8 @@ public void produceParseException(CssParseException error, StringBuffer ret) { ret.append(' '); - ret.append("\n <td class='codeContext'>"); if (error.getContexts() != null && error.getContexts().size() != 0) { + ret.append("\n <td class='codeContext'>"); StringBuffer buf = new StringBuffer(); // Loop on the list of contexts for errors for (Enumeration e = error.getContexts().elements(); e.hasMoreElements();) { @@ -194,9 +194,11 @@ } } if (buf.length() != 0) {ret.append(buf);} + } else { + ret.append("\n <td class='nocontext'>"); } ret.append("</td>"); - ret.append("\n <td class='message'>"); + ret.append("\n <td class='message'>"); String name = error.getProperty(); if ((name != null) && (getURLProperty(name) != null)) { ret.append(ac.getMsg().getGeneratorString("property"));
Received on Thursday, 14 December 2006 06:19:20 UTC