Skip to content

Conversation

@maplexgitx0302
Copy link

Since Chinese characters are full-width (twice larger than half-width characters, e.g., ASCII characters), the previous version break lines corresponding to the length of a string but not the true width of the string. I tried to modified it so it can determine when to break lines correctly.

Also, I want to adjust the value of max_width (default 49 characters). I simply add this argument for each functions so that I can adjust its value.
截圖 2024-01-04 下午5 20 13

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

Successfully merging this pull request may close these issues.

1 participant