From ed8f82e6ab390a4139af8440896ee9574a734894 Mon Sep 17 00:00:00 2001 From: Marc Englund Date: Mon, 15 Oct 2012 16:01:58 +0300 Subject: Fixes #9871 (originally by Seba, re-added test in reindeer.css) Replaces c/106 (I19008aba2561e41da055bff11dd8dc1bd0632a48) Change-Id: I21703e541957b7673231788705dfc2c963480e1f --- theme-compiler/src/com/vaadin/sass/tree/BlockNode.java | 4 +++- theme-compiler/tests/resources/basic/reindeer.css | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'theme-compiler') 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) { diff --git a/theme-compiler/tests/resources/basic/reindeer.css b/theme-compiler/tests/resources/basic/reindeer.css index 22ca405982..af02070e72 100644 --- a/theme-compiler/tests/resources/basic/reindeer.css +++ b/theme-compiler/tests/resources/basic/reindeer.css @@ -830,6 +830,10 @@ div.v-app-loading { width: 200px; } +.v-app-loginpage .v-button, .v-app-loginpage .v-button { + float: left; +} + .v-menubar { float: left; white-space: nowrap; -- cgit v1.2.3