Suppose I have a really long escaped property value to input in LESS. I can get it to output with newlines in the final formatted css by setting a variable to add a newline like so @nl: `"\n"`;
and use that in my escaped string to output newlines in the property value. So this:
@nl: `"\n"`;
.test {
property: ~"one,@{nl} two";
}
Will output this:
.test {
property: one,
two;
}
The question is whether there is any way to input it with newlines, something like:
.test {
property: ~"one,
two";
}
This throws a Parse error: Unrecognised input
in LESS. A long set of property values like one might have with a progid:DXImageTransform.Microsoft.Matrix
would benefit from being able to code it with newlines to begin with.
Though I posted an answer to my own question that I discovered worked, I'm open to a simpler one if it exists.