kostafey / ejc-sql

Emacs SQL client uses Clojure JDBC.
278 stars 29 forks source link

Table in ejc-result not align correct. #175

Closed cmal closed 1 year ago

cmal commented 1 year ago

In ejc-result table, wide characters (like CJK) takes 1 char wide other that 2 chars wide. Maybe this can be fixed.

Otherwise the table will not align correct when there are CJK characters in query results.

Thanks.

cmal commented 1 year ago

For example, in a column field whose wide is 10 characters:

  1. if the query result is me, then there should be 8 whitespaces.
  2. if the query result is , then there should also be 8 whitespaces, currently it is 9.
kostafey commented 1 year ago

Looks fixed. @cmal, could you check it out, please.