summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSalvador Zalapa2013-07-08 12:17:46 (EDT)
committerNick Sandonato2013-07-24 12:38:48 (EDT)
commitd4316c1f3c2f42dce1de3505ab0592cedc2e7e0a (patch)
tree906435968565e36f8e2b92bdf28bc716122ac1bd
parentccb3631ec5dc243238211dcc1d9fb9f084f9be00 (diff)
downloadwebtools.sourceediting-d4316c1f3c2f42dce1de3505ab0592cedc2e7e0a.zip
webtools.sourceediting-d4316c1f3c2f42dce1de3505ab0592cedc2e7e0a.tar.gz
webtools.sourceediting-d4316c1f3c2f42dce1de3505ab0592cedc2e7e0a.tar.bz2
Bug 412395: Incorrect formatting for filter: alpha(opacity = 33)v201307241658
Signed-off-by: Salvador Zalapa <zalapa@mx1.ibm.com>
-rw-r--r--bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/formatter/AbstractCSSSourceFormatter.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/formatter/AbstractCSSSourceFormatter.java b/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/formatter/AbstractCSSSourceFormatter.java
index 4bd509d..29f4ab1 100644
--- a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/formatter/AbstractCSSSourceFormatter.java
+++ b/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/formatter/AbstractCSSSourceFormatter.java
@@ -253,8 +253,11 @@ public abstract class AbstractCSSSourceFormatter implements CSSSourceGenerator {
return;
}
}
- if (!(source.length() > 0 && source.toString().charAt(source.length()-1) == ' '))
- source.append(" ");//$NON-NLS-1$
+ //bug412395
+ //just verify if the source and the toAppend strings do not end with a whitespace to avoid the whitespace duplication.
+ if (!(source.length() > 0 && source.toString().charAt(source.length()-1) == ' ') && !(toAppend.length() > 0 && toAppend.charAt(toAppend.length()-1) == ' ')){
+ source.append(" ");//$NON-NLS-1$
+ }
}
/**