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

Use tabs (U+0009) for autoformatting indentation #85

Open
toastal opened this issue Nov 15, 2024 · 0 comments
Open

Use tabs (U+0009) for autoformatting indentation #85

toastal opened this issue Nov 15, 2024 · 0 comments

Comments

@toastal
Copy link

toastal commented Nov 15, 2024

The tab character is a more user-friendly & accessible option for indentation since users can configure the width for whatever their preference desires or impairment requires. Printing becomes simpler for indentation depth (where 1 \t = 1 level of indentation). As a bonus, the output size is smaller not filled with more separating spaces than is required.

According to the spec https://github.com/kdl-org/kdl/blob/main/SPEC.md#whitespace, U+0009 is considered “non-Newline white space” & is allowable.

At a minimum, it would be nice to to see tabs supported as an option, but this would make indention a more complicated input ADT of enum Indent { Tab, Space(u8) } to support tabs & configurable space depth.

See more arguments (be warned there is a lot of bike-shedding, however many legitimate concerns): prettier/prettier#7475

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

1 participant