text-table icon indicating copy to clipboard operation
text-table copied to clipboard

Count a multibyte char width as 2 chars width

Open adorechic opened this issue 10 years ago • 3 comments

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 avatar Oct 22 '15 13:10 adorechic

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

adorechic avatar Oct 22 '15 14:10 adorechic

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

adorechic avatar Oct 27 '15 17:10 adorechic

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

aptinio avatar Nov 02 '15 01:11 aptinio