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

Formatter: Too many spaces on private constant #11819

Open
lbguilherme opened this issue Feb 9, 2022 · 1 comment · May be fixed by #12068 or #12069
Open

Formatter: Too many spaces on private constant #11819

lbguilherme opened this issue Feb 9, 2022 · 1 comment · May be fixed by #12068 or #12069

Comments

@lbguilherme
Copy link
Contributor

This is an output of crystal tool format:

private A      = 2
BBBBBB = 3

I would expect it to be formatted as:

private A = 2
BBBBBB    = 3

Or maybe as:

private A = 2

BBBBBB = 3

The bug seems to be that the length of the private keyword isn't taken into account.

@ftarulla
Copy link
Collaborator

Investigating on this issue lead me to issue #4111 closed by PR #4112 in which is described the new Too many spaces on private constant problem.
Then the discussion follows on issue #4113.

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