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

Count a multibyte char width as 2 chars width #12

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

adorechic
Copy link

Current code uses the number of characters as a text width, so that a table rows which includes multibyte characters have different width. If we put 3 byte characters to be 2 times wider than ascii characters, a table rows have same width on monospaced font.

text-table-multibyte

@adorechic
Copy link
Author

oops, does this gem supports ruby 1.8 and 1.9? I will fix it.

@adorechic
Copy link
Author

I fixed to pass ruby 1.8 or 1.9 specs. PTAL!

@aptinio
Copy link
Owner

aptinio commented Nov 2, 2015

Thanks @adorechic. I'll take a look at this hopefully this week.

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.

2 participants