-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
calc() with escaped strings removes parenthesis #3191
Comments
Sorry, what is the problem with the output? The removal of the parentheses? |
Exactly. The parentheses is removed, causing the calculation to be wrong. Calc will be evaluated as |
@oBusk Okay, got it. Not sure why Less is doing that, other than there's probably logic in there for simplifying expressions that normally works when the calculations are allowed to be evaluated, but doesn't work in this case because the expressions aren't getting evaluated. Valid bug. |
Elevating to medium just because low is like an edge case that may never happen, and this seems like it may reasonably happen more often. |
Fixed! - PR needs review - #3223 |
In 3.0 calculations in
calc()
are now only done on runtime, as stated in changelog.md. Previously, since content ofcalc()
was being calculated, things that wanted to be kept had to be espaced as such:After upgrading to 3.0 the result is
Workaround
This can currently be fixed by not escaping;
The text was updated successfully, but these errors were encountered: