cloudhead/less.js — pull request #782 by traviscross (2012-04-21 06:21:39+00:00)
Title: Fix expansion of units in quoted strings

Greetings,

Currently this code:

#foo {
@angle: -45deg;
@tmp: ~"@{angle}";
test: @tmp
}

results in:

#foo {
test: -45;
}

Besides being surprising, this behavior makes it difficult to write certain kinds of mixins.

The pull request here appends the unit to a value if it has one when the value is being expanded in a quoted string. With this change, the above code results in:

#foo {
test: -45deg;
}