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

Need keep braces aroung expressions #9

Closed
ghost opened this issue Oct 12, 2017 · 7 comments
Closed

Need keep braces aroung expressions #9

ghost opened this issue Oct 12, 2017 · 7 comments
Labels

Comments

@ghost
Copy link

ghost commented Oct 12, 2017

When we write any expression:
.test
width (100% / some) // some is a variable
After fixing:
.test
width 100% / some
And there we lose expression, stylus will paste 100% / some as is, and it's a bug

@ThisIsManta
Copy link
Owner

Thank you for reporting this bug. Spare me a weekend to fix this.

@ghost
Copy link
Author

ghost commented Oct 12, 2017

Thank you for development this awesome formatter
I will use it after all

@ThisIsManta
Copy link
Owner

This is fixed in version 2.4.1. Cheers!

@ghost
Copy link
Author

ghost commented Oct 15, 2017

Awesome!

@zhanziyang
Copy link

zhanziyang commented Oct 22, 2017

Hi, I'm using v2.5.0 and the issue still exists.

Edit:
This works find:

.block
  padding (10px / 14px)

but when there is a unit, the braces gone agian:

.block
  padding (10px / 14px)em

formatted to

.block
  padding 10px / 14px em

@ThisIsManta
Copy link
Owner

ThisIsManta commented Oct 22, 2017

The above issue is fixed in version 2.5.1. Sorry for inconvenience.

@zhanziyang
Copy link

Thank you.

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

No branches or pull requests

2 participants