less / old-lesscss.org

The OLD lesscss.org. For the new one see less-docs.
http://lesscss.org
90 stars 48 forks source link

trailing space after escaped string #104

Closed Soviut closed 10 years ago

Soviut commented 10 years ago

I'm using the function hack to do some simple inline calculations and noticed that the escaped string keeps adding a trailing space when compiled. This makes it impossible to put units after it:

@fn: `fn = function(a) { return a * 2; }`;

a {
  width: `fn(25)`px;
}

Compiles to the following, note the space between the value and the px units:

a {
  width: 50 px;
}
Soviut commented 10 years ago

Accidentally posted to the wrong repo, this was intended for less.js