2002/css-validator/org/w3c/css/css StyleSheetGeneratorHTML2.java,1.22,1.23

Update of /sources/public/2002/css-validator/org/w3c/css/css
In directory hutz:/tmp/cvs-serv4731

Modified Files:
	StyleSheetGeneratorHTML2.java 
Log Message:
Changed the markup for warnings to add context information

Index: StyleSheetGeneratorHTML2.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/css/StyleSheetGeneratorHTML2.java,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- StyleSheetGeneratorHTML2.java	12 Dec 2006 07:31:33 -0000	1.22
+++ StyleSheetGeneratorHTML2.java	13 Dec 2006 05:52:05 -0000	1.23
@@ -359,7 +359,7 @@
 //			    ret.append(ac.getMsg().getGeneratorString("line"));
 //			    ret.append(" : ");
 			    ret.append(oldLine);
-			    ret.append("</span>. ");
+			    ret.append(".</span> ");
 // <span class='level1'> - level of warning
 			    if (warn.getLevel() != 0) {
 				ret.append("<span class='level");
@@ -368,7 +368,10 @@
 			    }
 			    ret.append(Util.escapeHTML(oldMessage));
 			    if (warn.getContext() != null) {
-				ret.append(" : ").append(warn.getContext());
+				ret.append(" : ")
+				ret.append("<span class='codeContext'>");
+				ret.append(warn.getContext());
+			    ret.append("</span>");
 			    }
 			    ret.append("</span> ");
 			    ret.append("</li>");

Received on Wednesday, 13 December 2006 05:52:14 UTC