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

Preserving spaces around variables #21

Open
animify opened this issue Jan 21, 2018 · 5 comments
Open

Preserving spaces around variables #21

animify opened this issue Jan 21, 2018 · 5 comments

Comments

@animify
Copy link

animify commented Jan 21, 2018

Would you consider adding an option for preserving spaces around variables or comments between variables?

image

Preserving whitespace around something like the above would be cool!

@ThisIsManta
Copy link
Owner

You mean a new line before a comment, don't you?

@animify
Copy link
Author

animify commented Jan 21, 2018

Yeah before comments, but even just between variables, so that's easier to distinguish groups of variables. Like above, the new lines act as a divider between family/headings/size/weights etc.

@ThisIsManta
Copy link
Owner

I put this on-hold because I still can't find a good solution to parse single-line comments.

@animify
Copy link
Author

animify commented Jan 26, 2018

Fair enough, how about an option for now that will preserve new lines around variables?

@kbtz
Copy link

kbtz commented Apr 28, 2019

I've been using this formatter for a while now and the only thing I see left to make it perfect is to not remove blank lines around grouped variable declarations such as hashes.

@ThisIsManta Thanks for you amazing work! 🙏

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

No branches or pull requests

3 participants