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

Keeping the tabs that are recipe prefixes? #62

Open
philderbeast opened this issue May 21, 2024 · 2 comments
Open

Keeping the tabs that are recipe prefixes? #62

philderbeast opened this issue May 21, 2024 · 2 comments

Comments

@philderbeast
Copy link

Could fix-whitespace help with make files (Makefile and .mk), keeping the tabs that are recipe prefixes but fixing other whitespace?

A workaround would be to use a .RECIPEPREFIX, one of the special variables, to pick something other than tab.

@ulysses4ever
Copy link
Contributor

Handling makefiles specially sounds like a good idea: that's what vim/emacs do too, I think. The implementation will have to try to be elegant but it's hard when it comes to special cases.

We will need to know what Andreas thinks about it but in principle: do you want to volunteer?

@philderbeast
Copy link
Author

I'm loving fix-whitespace. A consequence of adding andreasabel/fix-whitespace-action is that I have to replace tab characters in code snippets taken from make files if I want to fix whitespace in markdown files. I tried <tab> but that looked ugly. There's a unicode symbol for right tab that looks OK, like in this snippet from updo/README.md:

updo/Makefile:
⇥ rm -rf updo
⇥ curl -sSL ${UPDO_URL} | tar -xz
⇥ mv updo-* updo
⇥ chmod +x $$(grep -RIl '^#!' updo)

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