Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Unit casting ends up with weird spacing #46

Open
maranomynet opened this issue Oct 17, 2018 · 0 comments
Open

Unit casting ends up with weird spacing #46

maranomynet opened this issue Oct 17, 2018 · 0 comments

Comments

@maranomynet
Copy link

  $foo = 100;
  width: ($foo)px;

becomes:

  $foo = 100;
  width: $foo px;

While this is technically still valid Stylus code, it just looks and feels weird/ambiguous.

I'd much prefer the formatter to either leave such (...)em unit casting constructs alone, or enforce the formatting style of including parentheses and the unit tacked tight at the end.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants