less / less/less.js

Less fails at non-standard whitespace and newline chars

Open
#2,542 18 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug medium priority
Dominant language
JavaScript
Stars
17k
Forks
3.4k
Avg merge
7h 42m
Merged PRs (30d)
26

Description

This a broken issue with less@2.5.0. I've tested less@2.4.0 and it is working.

Related grunt-contrib-less which is where I discoverd this.

Here's a test case that breaks

.opacity(@op:100) {
    filter:alpha(opacity=@op);
    -moz-opacity:@op/100;
    -khtml-opacity:@op/100;
    opacity:@op/100;
}
body {
  .opacity();
}

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the supplied LESS testcase and compare its behavior under less@2.4.0 and less@2.5.0, focusing on the non-standard whitespace and newline characters. Done means the testcase compiles correctly under the affected version without regressing the working 2.4.0 behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
compilers, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.