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

Prefer tab character over 6-spaces #1840

Open
cyanzhong opened this issue May 29, 2023 · 4 comments
Open

Prefer tab character over 6-spaces #1840

cyanzhong opened this issue May 29, 2023 · 4 comments
Assignees

Comments

@cyanzhong
Copy link
Contributor

cyanzhong commented May 29, 2023

Hey everyone, it seems like there's an automatic conversion that changes tab characters to six spaces, and I can't find a way to turn it off.

We've received feedback from users about this, and although we haven't made a final decision on whether to address it, I'm curious if there's a way to make that happen.

Thanks.

@BryanValverdeU
Copy link
Contributor

Hello @cyanzhong
Could you please provide how are you adding the tab character?
Is it when using Tab or when pasting content with those tab characters?

@cyanzhong
Copy link
Contributor Author

Thank you @BryanValverdeU for the response!

Sorry about the confusion, I was referring to pressing the Tab key. I know the behavior can vary in editors, some insert \t and some translate it to spaces (the number of spaces can also vary...)

In roosterjs, it seems \t is translated to 6-spaces (when it's not used for indentation).

@BryanValverdeU
Copy link
Contributor

I see, thanks @cyanzhong .

We acknowledge the requested feature, but at present, it is not included in our current development schedule. If you have the capacity, we strongly encourage you to make an open-source contribution to incorporate an alternative functionality that replaces spaces with the insertion of "\t".

We may consider this in the future so, adding FeatureAsk Tag for this issue.

@cyanzhong
Copy link
Contributor Author

cyanzhong commented Jun 3, 2023

@BryanValverdeU thanks for the confirmation! I will take a look when I am available, or we get louder voices from users.

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

No branches or pull requests

3 participants