Skip to content

Commit

Permalink
Add test string-with-whitespace-but-unquoted and fix corresponding doc
Browse files Browse the repository at this point in the history
  • Loading branch information
YJ Yang committed Nov 8, 2015
1 parent 7045bd0 commit faa0e78
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,13 @@ LESS | JS
---- | ----
"hello world" | '"hello world"'

*Note:* strings that contain a whitespace but are not quoted will not be quoted.
I'm not even sure if this is even valid LESS syntax in most cases.
*Note:* strings that contain a whitespace but are not quoted will result in the
words being joined with a comma.
See the section "Multiple values being juxtaposed" below for an explanation.

LESS | JS
---- | ----
hello world | 'hello world'
hello world | 'hello, world'

### Pixels will result in plain numbers

Expand Down
1 change: 1 addition & 0 deletions test/string-with-whitespace-but-unquoted/index.less
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@str: hello world;
5 changes: 5 additions & 0 deletions test/string-with-whitespace-but-unquoted/test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
var assert = require('assert');

module.exports = function (importResult) {
assert.deepEqual(importResult.str, 'hello, world');
};

0 comments on commit faa0e78

Please sign in to comment.