nex3/sass — Issue #195: wrong variable interpolation in @each loop
Author: simne7
Created: 2011-10-12 13:23:11+00:00
State: open

I came across this problem when trying to create comments in an @each-loop.

scss:
$list: 1,2,3,4,5;

@each $cnt in $list {

/*! comment °#{$cnt}*/
.name {
width: #{$cnt}px;
}

}

css:
/* comment °1*/
.name {
width: 1px; }

/* comment °1*/
.name {
width: 2px; }

/* comment °1*/
.name {
width: 3px; }

/* comment °1*/
.name {
width: 4px; }

/* comment °1*/
.name {
width: 5px; }

SASS version : 3.1.8 (Brainy Betty)
RAILS version: 1.2.6