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

Perltidy defaults to -et when tabs are enabled instead of -t #93

Open
rmzg opened this issue Mar 31, 2022 · 3 comments
Open

Perltidy defaults to -et when tabs are enabled instead of -t #93

rmzg opened this issue Mar 31, 2022 · 3 comments

Comments

@rmzg
Copy link

rmzg commented Mar 31, 2022

Long story short, despite the documentation recommending -et over -t, -et is basically broken:
perltidy/perltidy#90

If you want sane indentation using tabs, use -t instead.

@FractalBoy
Copy link
Owner

If it's broken, I would defer to perltidy to fix the issue. The -t option has no option for tab size which would mean we would need to ignore that setting from the client.

@rmzg
Copy link
Author

rmzg commented Mar 31, 2022

Sorry, it's probably too early in the morning, but why is there even a tab size setting? The whole point of using tabs is that I don't have to care about sizes and widths and stuff, I just say "indent by one level" and insert a tab. If you look at my example in the first comment of that bug, if PLS used -t instead it would have Just Worked.

@FractalBoy
Copy link
Owner

I don't know, I don't use tabs so I guess I didn't even really think it through. I suppose I'm fine switching back to -t but the perltidy documentation says that option is deprecated. So if they change their documentation to say it's no longer deprecated, I will use it.

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

No branches or pull requests

2 participants