-
Notifications
You must be signed in to change notification settings - Fork 2
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
wierd comma behavior #11
Comments
Thanks for reporting this. I've reproduced the behavior in the VSCode version (based on JavaScript). It doesn't happen in the web version (based on .NET). I suspect it's an issue with the fullwidth-character library I'm using. I won't be able to get to this right away. But as a workaround, if you're using the VSCode version, try changing the setting |
I'm going to try transferring this issue to FracturedJsonVSC since, according to my testing, it only affects the Visual Studio Code version. |
Here's what's going on: The Unicode annex that deals with East Asian Width categorizes characters into a few groups to describe their east Asian width characteristics. One of those categories is "ambiguous". Several Latin characters with diacritics are classified as ambiguous, including some of the ones in the bug reproduction text. The library I'm using in version 3.1.0 is treating those characters as two spaces wide, but in typical western fonts they're renders as one space wide, which is throwing off the justification logic. The spec says:
My plan is:
I would leave My hope is that this provides most users with the desired behavior without needing to adjust the settings, while still allowing people to use the current behavior. I welcome any input on this plan. (It'll probably be a few weeks before I get to implementing it.) |
sounds good |
Fixed in version 3.1.1. |
sample:
(try minifying and formatting)
The text was updated successfully, but these errors were encountered: