summaryrefslogtreecommitdiffstats
path: root/theme-compiler/src
diff options
context:
space:
mode:
Diffstat (limited to 'theme-compiler/src')
-rw-r--r--theme-compiler/src/com/vaadin/sass/tree/BlockNode.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/theme-compiler/src/com/vaadin/sass/tree/BlockNode.java b/theme-compiler/src/com/vaadin/sass/tree/BlockNode.java
index 3c87d3db82..5a64a928db 100644
--- a/theme-compiler/src/com/vaadin/sass/tree/BlockNode.java
+++ b/theme-compiler/src/com/vaadin/sass/tree/BlockNode.java
@@ -38,11 +38,13 @@ public class BlockNode extends Node implements IVariableNode, InterpolationNode
public String toString(boolean indent) {
StringBuilder string = new StringBuilder();
+ int i = 0;
for (final String s : selectorList) {
string.append(s);
- if (selectorList.indexOf(s) != selectorList.size() - 1) {
+ if (i != selectorList.size() - 1) {
string.append(", ");
}
+ i++;
}
string.append(" {\n");
for (Node child : children) {