Revision: 6459
Author: [email protected]
Date: Fri Oct 23 16:25:03 2009
Log: r6458 causes CssProperty to add a space before the first part of a CSS  
expression.  This patch only adds spaces after the first part.

Patch by: jlabanca
Review by: bobv (TBR)


http://code.google.com/p/google-web-toolkit/source/detail?r=6459

Modified:
  /trunk/user/src/com/google/gwt/resources/css/ast/CssProperty.java

=======================================
--- /trunk/user/src/com/google/gwt/resources/css/ast/CssProperty.java   Fri  
Oct 23 15:25:47 2009
+++ /trunk/user/src/com/google/gwt/resources/css/ast/CssProperty.java   Fri  
Oct 23 16:25:03 2009
@@ -147,15 +147,17 @@
      @Override
      public String getExpression() {
        StringBuilder toReturn = new StringBuilder();
+      boolean first = true;
        for (Iterator<Value> i = values.iterator(); i.hasNext();) {
          Value value = i.next();
-        if (value.isSpaceRequired()) {
+        if (!first && value.isSpaceRequired()) {
            toReturn.append("\" \" +");
          }
          toReturn.append(value.getExpression());
          if (i.hasNext()) {
            toReturn.append("+ ");
          }
+        first = false;
        }
        return toReturn.toString();
      }

--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---

Reply via email to