- From: Karl Dubost via cvs-syncmail <cvsmail@w3.org>
- Date: Wed, 13 Dec 2006 07:23:26 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2002/css-validator/org/w3c/css/css In directory hutz:/tmp/cvs-serv1186 Modified Files: StyleSheetGeneratorHTML2.java Log Message: Changing for a table for warnings it will be easier to style Index: StyleSheetGeneratorHTML2.java =================================================================== RCS file: /sources/public/2002/css-validator/org/w3c/css/css/StyleSheetGeneratorHTML2.java,v retrieving revision 1.25 retrieving revision 1.26 diff -u -d -r1.25 -r1.26 --- StyleSheetGeneratorHTML2.java 13 Dec 2006 06:52:18 -0000 1.25 +++ StyleSheetGeneratorHTML2.java 13 Dec 2006 07:23:24 -0000 1.26 @@ -347,39 +347,38 @@ oldSourceFile = warn.getSourceFile(); ret.append("\n<div><h3>URI : <a href=\""); ret.append(oldSourceFile).append("\">"); - ret.append(oldSourceFile).append("</a></h3><ul>"); + ret.append(oldSourceFile).append("</a></h3><table>"); open = true; } // if (warn.getLine() != oldLine // || !warn.getWarningMessage().equals(oldMessage)) { oldLine = warn.getLine(); oldMessage = warn.getWarningMessage(); - ret.append("\n<li class='warning'><span class='linenumber'>"); + ret.append("\n<tr class='warning'><td class='linenumber'>"); // to remove the trigger of line label in languages. // ret.append(ac.getMsg().getGeneratorString("line")); // ret.append(" : "); ret.append(oldLine); - ret.append(".</span> "); + ret.append("</td> "); // <span class='level1'> - level of warning if (warn.getLevel() != 0) { - ret.append("<span class='level"); + ret.append("<td class='level"); ret.append(warn.getLevel()); ret.append("'>"); } ret.append(Util.escapeHTML(oldMessage)); - ret.append("</span> "); + ret.append("</td> "); + ret.append("<td class='codeContext'>"); if (warn.getContext() != null) { - ret.append(" : "); - ret.append("<span class='codeContext'>"); ret.append(warn.getContext()); - ret.append("</span>"); } - ret.append("</li>"); + ret.append("</td>"); + ret.append("</tr>"); // } } } if (open) { - ret.append("\n</ul>"); + ret.append("\n</table>"); } ret.append("</div>"); }
Received on Wednesday, 13 December 2006 07:23:33 UTC