W3C home > Mailing lists > Public > www-validator-cvs@w3.org > August 2012

2002/css-validator/org/w3c/css/values CssExpression.java,1.11,1.12 CssFunction.java,1.8,1.9

From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
Date: Sat, 18 Aug 2012 20:30:30 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1T2pfC-0003Qi-Nu@lionel-hutz.w3.org>
Update of /sources/public/2002/css-validator/org/w3c/css/values
In directory hutz:/tmp/cvs-serv13096/values

Modified Files:
	CssExpression.java CssFunction.java 
Log Message:
font-variant-alternates per http://www.w3.org/TR/2011/WD-css3-fonts-20111004/#propdef-font-variant-alternates - removed unused property

Index: CssFunction.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/values/CssFunction.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- CssFunction.java	6 Jan 2010 09:27:44 -0000	1.8
+++ CssFunction.java	18 Aug 2012 20:30:28 -0000	1.9
@@ -67,7 +67,7 @@
      */
     public String toString() {
         StringBuilder sb = new StringBuilder(name);
-        sb.append('(').append(parameters).append(')');
+        sb.append('(').append(parameters.toStringFromStart()).append(')');
         return sb.toString();
     }
 

Index: CssExpression.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/values/CssExpression.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- CssExpression.java	21 Oct 2011 01:49:13 -0000	1.11
+++ CssExpression.java	18 Aug 2012 20:30:28 -0000	1.12
@@ -193,9 +193,9 @@
             ValueOperator vo = items.get(i);
             sb.append(vo.value.toString()).append(vo.operator);
         }
-        // remove the last one
-        if (sb.length() > 0) {
-//            sb.setLength(sb.length() - 1);
+        // remove the last extra operator
+        if (sb.length() > 1) {
+            sb.setLength(sb.length() - 1);
             return sb.toString();
         } else {
             return "**invalid state**";
@@ -211,6 +211,8 @@
         for (ValueOperator anItem : items) {
             sb.append(anItem.value.toString()).append(anItem.operator);
         }
+		// care for the last extra operator
+		sb.setLength(sb.length() - 1);
         return sb.toString();
     }
 
Received on Saturday, 18 August 2012 20:30:31 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:50 UTC