stylus-supremacy icon indicating copy to clipboard operation
stylus-supremacy copied to clipboard

Preserving spaces around variables

Open animify opened this issue 7 years ago • 5 comments

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!

animify avatar Jan 21 '18 16:01 animify

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

ThisIsManta avatar Jan 21 '18 17:01 ThisIsManta

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.

animify avatar Jan 21 '18 17:01 animify

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

ThisIsManta avatar Jan 26 '18 07:01 ThisIsManta

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

animify avatar Jan 26 '18 08:01 animify

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! :pray:

cvsguimaraes avatar Apr 28 '19 01:04 cvsguimaraes