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

add support for CJK? #10

Open
WankkoRee opened this issue Sep 3, 2023 · 1 comment
Open

add support for CJK? #10

WankkoRee opened this issue Sep 3, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@WankkoRee
Copy link

in CJK, a char occupies two chars width.

So I want it formatted like this:

Before

type Test struct {
	NormalChars string `json:"normalChars" t:"abc" othertag:"123"`
	CjkChars    string `json:"cjkChars"    t:"中の한" othertag:"456"`
}

image

After

type Test struct {
	NormalChars string `json:"normalChars" t:"abc"    othertag:"123"`
	CjkChars    string `json:"cjkChars"    t:"中の한" othertag:"456"`
}

image

but beacuse of fonts, it may not be strictly aligned visually.

@momaek momaek added the bug Something isn't working label Sep 8, 2023
@momaek
Copy link
Owner

momaek commented Sep 8, 2023

It's a bug. I'm trying to fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants