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

Strings in Japanese are not aligned #8

Open
johanburati opened this issue Oct 3, 2022 · 1 comment
Open

Strings in Japanese are not aligned #8

johanburati opened this issue Oct 3, 2022 · 1 comment

Comments

@johanburati
Copy link

johanburati commented Oct 3, 2022

Strings in Japanese are not aligned, you might want to use utf8.RuneCountInString instead of len to compute the length of the strings.

Example

Output

COMPANY          CITY  ISSUE
-------          ----  -----
AAAホールディングス株式会社  東京    〇についての問い合わせ
トトト株式会社          名古屋   〇〇できない
桜株式会社            大阪    〇の不具合
@johanburati johanburati changed the title Strings in Japanes are not aligned Strings in Japanese are not aligned Oct 3, 2022
@DashingYoungMan
Copy link

Chinese is also misplaced, what method should be used to align it

Name  Age  Email
----  ---  -----
aaa   25   [email protected]       
bbb   25   [email protected]       
蔡徐坤   30   [email protected]    
爱坤    30   [email protected]     
真爱坤   30   [email protected] 

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

2 participants