Skip to content
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

Doesn't support tabs #19

Open
balupton opened this issue Aug 29, 2013 · 3 comments
Open

Doesn't support tabs #19

balupton opened this issue Aug 29, 2013 · 3 comments

Comments

@balupton
Copy link

2 spaces:

$ node -e "console.log(require('styl')('ul\n  margin: 0', {whitespace:true}).toString())"
ul {
  margin: 0;
}

tabs:

$ node -e "console.log(require('styl')('ul\n\tmargin: 0', {whitespace:true}).toString())"

/Users/balupton/Projects/bevry/docpad-extras/plugins/styl/node_modules/styl/node_modules/rework/node_modules/css/node_modules/css-parse/index.js:60
    throw err;
          ^
Error: missing '{' near line 3:12
    at error (/Users/balupton/Projects/bevry/docpad-extras/plugins/styl/node_modules/styl/node_modules/rework/node_modules/css/node_modules/css-parse/index.js:56:15)
    at declarations (/Users/balupton/Projects/bevry/docpad-extras/plugins/styl/node_modules/styl/node_modules/rework/node_modules/css/node_modules/css-parse/index.js:212:25)
    at rule (/Users/balupton/Projects/bevry/docpad-extras/plugins/styl/node_modules/styl/node_modules/rework/node_modules/css/node_modules/css-parse/index.js:454:21)
    at rules (/Users/balupton/Projects/bevry/docpad-extras/plugins/styl/node_modules/styl/node_modules/rework/node_modules/css/node_modules/css-parse/index.js:101:49)
    at stylesheet (/Users/balupton/Projects/bevry/docpad-extras/plugins/styl/node_modules/styl/node_modules/rework/node_modules/css/node_modules/css-parse/index.js:71:16)
    at Object.module.exports [as parse] (/Users/balupton/Projects/bevry/docpad-extras/plugins/styl/node_modules/styl/node_modules/rework/node_modules/css/node_modules/css-parse/index.js:458:10)
    at rework (/Users/balupton/Projects/bevry/docpad-extras/plugins/styl/node_modules/styl/node_modules/rework/lib/rework.js:35:25)
    at new Style (/Users/balupton/Projects/bevry/docpad-extras/plugins/styl/node_modules/styl/index.js:36:17)
    at Style (/Users/balupton/Projects/bevry/docpad-extras/plugins/styl/node_modules/styl/index.js:31:40)
    at [eval]:1:28
@greduan
Copy link

greduan commented Aug 29, 2013

I can confirm this issue.

@tj
Copy link
Owner

tj commented Aug 29, 2013

issue in visionmedia/css-whitespace

@RobLoach
Copy link

🔒

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants