-
-
Notifications
You must be signed in to change notification settings - Fork 489
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
Tabulation is wrong comparing to original Notepad #19
Comments
I did a few tests. Tabulation in original Notepad takes 8 characters. I guess you could add an option to change the tabulation size in characters to Notepads? Don't confuse with spaces option. |
1234567 tabbed Just want to confirm, there are two tabs in between right? |
There is a sample text in the first post. |
Yeah, I understand it's not a bug to solve, but more like an enhancement to make to change the tabulation size. Could you implement such a feature? Because I have plenty documents that have a lot of tabulations that I already made in original Notepad, but I cannot work with them in Notepads because tabulation is wrong on every line. |
Could that property do the trick: |
Yes, RichEditBox.Document.DefaultTabStop is the right one and the reason I do not want to change it is because it is very flaky by my observation. Let me try it again to see if it can help. Btw, it is not just changing the RichEditBox.Document.DefaultTabStop, I need to change it every single time when font changes as well. Check it here: https://github.com/JasonStein/Notepads/blob/master/src/Notepads/Controls/TextEditor/TextEditor.cs (Search for SetDefaultTabStop) |
Fortunately, we don't change font often, do we? |
OK, I will take a deep look later this week to see what I can do for you. |
Interesting. Also distance between |
I think so. I changed SetDefaultTabStop
But it looks like the distance from 0->2 is the same as 2->3 |
Hm, seems like I will try to dig into that problem myself then. Thanks for attempts, guys. |
I also did a few tests, and seems like it's really a bug in UWP SDK. |
@Jasonstein I just tested the sample and it seems Wordpad, Microsoft Word and Notepads produce similar results while Notepad produces a different result. May be this has to do with RichEditBox control being designed for .rtf files and tab behavior for word processors are different than text editors?? |
Notepad:


Notepads:
Sample text (looks fine on GitHub as well):
The text was updated successfully, but these errors were encountered: