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)
git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@6459 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/user/src/com/google/gwt/resources/css/ast/CssProperty.java b/user/src/com/google/gwt/resources/css/ast/CssProperty.java
index 40a5ecb..9e947d9 100644
--- a/user/src/com/google/gwt/resources/css/ast/CssProperty.java
+++ b/user/src/com/google/gwt/resources/css/ast/CssProperty.java
@@ -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();
}