8000 explain multibyte option in readme · arches/table_print@1b62f5b · GitHub
[go: up one dir, main page]

Skip to content

Commit

Permalink
explain multibyte option in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
arches committed Oct 31, 2013
1 parent 91dab91 commit 1b62f5b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,14 @@ You can also set global options:

tp.set :max_width, 10 # columns won't exceed 10 characters
tp.set :time_format, "%Y" # date columns will only show the year

=== Multibyte

Unfortunately, the current approach to finding the width of multibyte strings is too slow. If you're going to be
working with a lot of multibyte characters, set the multibyte option first to enable the slower yet more precise
width calculation:

> tp.set :multibyte, true

== Contributing to table_print

Expand Down

0 comments on commit 1b62f5b

Please sign in to comment.
0