2002/css-validator/org/w3c/css/css StyleSheetGeneratorHTML2.java,1.48,1.49

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

Modified Files:
	StyleSheetGeneratorHTML2.java 
Log Message:
Modified errors: adding title for line numbers. fixing markup mistakes for warnings

Index: StyleSheetGeneratorHTML2.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/css/StyleSheetGeneratorHTML2.java,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -d -r1.48 -r1.49
--- StyleSheetGeneratorHTML2.java	15 Dec 2006 08:14:38 -0000	1.48
+++ StyleSheetGeneratorHTML2.java	15 Dec 2006 08:26:55 -0000	1.49
@@ -259,12 +259,13 @@
 				ret.append(file).append("</a></h3>\n<table>");
 				open = true;
 		    }
-		    ret.append("\n<tr class='error'>\n   <td class='linenumber'>");
-//		    ret.append(ac.getMsg().getGeneratorString("line"));
+		    ret.append("\n<tr class='error'>\n   <td class='linenumber' title='");
+			ret.append(ac.getMsg().getGeneratorString("line"));
+		    ret.append(error[i].getLine());
+		    ret.append("'>");
 		    ret.append(error[i].getLine());
 		    ret.append("</td>");
 
-
 		    if (ex instanceof FileNotFoundException) {
 				ret.append("\n   <td class='nocontext'> </td>\n   <td class='notfound'> ");
 				ret.append(ac.getMsg().getGeneratorString("not-found"));
@@ -345,7 +346,6 @@
 				// Starting a line for each new warning
 			    ret.append("\n<tr class='warning'>\n   <td class='linenumber' title='");
 				ret.append(ac.getMsg().getGeneratorString("line"));
-			    ret.append(oldLine);
 			    ret.append(" ").append(oldLine);
 			    ret.append("'>");
 			    ret.append(oldLine);
@@ -361,7 +361,7 @@
 				// creating a class and a title with the appropriate level number
 				ret.append("\n   <td class='level");
 				ret.append(warn.getLevel());
-				ret.append("' title='warning level '");
+				ret.append("' title='warning level ");
 				ret.append(warn.getLevel());
 				ret.append("'>");
 			    ret.append(Util.escapeHTML(oldMessage));

Received on Friday, 15 December 2006 08:27:05 UTC