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

Add spaces aroung list items #305

Open
vkatsuba opened this issue Jun 2, 2022 · 0 comments
Open

Add spaces aroung list items #305

vkatsuba opened this issue Jun 2, 2022 · 0 comments
Labels
configuration idea style change Improvements on a formatter style

Comments

@vkatsuba
Copy link
Contributor

vkatsuba commented Jun 2, 2022

Currently formatter add spaces in maps, tuples, records with config:

{format, [{ options, #{ spaces_around_fields => true } }]}.

will format empty data like

#{ a => b }

But this rule is not apply to lists. I would like it to be formatted lists like:
From

-export([init/1]).

To

-export([ init/1 ]).

I suppose it would be great to add additional rule like: spaces_around_items => true or similar.

Regards,
--V

@vkatsuba vkatsuba added configuration idea style change Improvements on a formatter style labels Jun 2, 2022
@elbrujohalcon elbrujohalcon added this to the Eventually 🙄 milestone Jun 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
configuration idea style change Improvements on a formatter style
Projects
None yet
Development

No branches or pull requests

2 participants