arches / table_print

The best data slicer! Watch a 3 minute screencast at http://tableprintgem.com
MIT License
899 stars 43 forks source link

Multibyte characters misrepresented #2

Open arches opened 13 years ago

arches commented 13 years ago

At display time, multibyte characters are shown as a single column. But when calculating column width, it appears that each byte of the character is counted as a new column. Thus, cells with multibyte characters are displayed too narrowly, breaking the vertical alignment of subsequent columns.

arches commented 11 years ago

fixed for ruby versions after 1.8.7

arches commented 11 years ago

® symbol is improperly counted (cells with ® are one column too narrow)

shlomizadok commented 8 years ago

I believe that #45 fixes this :)