Skip to content

devconfig: use two spaces instead of tab #1589

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

Merged
merged 2 commits into from
Oct 25, 2023
Merged

devconfig: use two spaces instead of tab #1589

merged 2 commits into from
Oct 25, 2023

Conversation

gcurtis
Copy link
Collaborator

@gcurtis gcurtis commented Oct 25, 2023

The default hujson formatting uses tabs, which causes a bunch of whitespace changes for existing configs. Most JSON formatters/LSP servers also tend to default to 2 spaces. Add a simple replace all to change all tabs to " ", which should be safe since raw tab characters are not allowed in valid JSON values.

The default hujson formatting uses tabs, which causes a bunch of
whitespace changes for existing configs. Most JSON formatters/LSP
servers also tend to default to 2 spaces. Add a simple replace all to
change all tabs to "  ", which should be safe since raw tab characters
are not allowed in valid JSON values.
@LucilleH
Copy link
Collaborator

TY!

@gcurtis gcurtis merged commit 66ae207 into main Oct 25, 2023
@gcurtis gcurtis deleted the gcurtis/hujson-fmt branch October 25, 2023 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants