Skip to content

Releases: tj/terminal-table

3.0.1

10 May 14:17
d6ede54
Compare
Choose a tag to compare

3.0.1 / 2021-05-10

  • Support for unicode-display_width 2.0
  • Fix issue where last row of an empty table changed format

3.0.0

10 May 14:13
50f2dfc
Compare
Choose a tag to compare
  • Support for (optional) Unicode border styles on tables. In order to support decent looking Unicode borders, different types of intersections get different types of intersection characters. This has the side effect of subtle formatting differences even for the ASCII table border case due to removal of certain intersections near colspans.

For example, previously the output of a table may be:
+------+-----+
| Title |
+------+-----+
| Char | Num |
+------+-----+
| a | 1 |
| b | 2 |
| c | 3 |
+------+-----+

And now the + character above the word Title is removed, as it is no longer considered an intersection:

    +------------+
    |   Title    |
    +------+-----+
    | Char | Num |
    +------+-----+
    | a    | 1   |
    | b    | 2   |
    +------+-----+
  • The default border remains an ASCII border for backwards compatibility, however multiple border classes are included / documented, and user defined border types can be applied as needed.

In support of this update, the following issues were addressed:

  • colspan creates conflict with colorize (#95)
  • Use nice UTF box-drawing characters by default (#99)
    • Note that AsciiBorder is stll the default
  • Border-left and border-right style (#100)
  • Helper function to style as Markdown (#111)
    • Achieved using MarkdownBorder

2.0.0

01 Nov 21:28
c5647ab
Compare
Choose a tag to compare

Requires Ruby 2.4+

  • Protect against nil in column/row loop (#92)
  • Remove unicode display string extensions (#104)

1.8.0

17 May 03:06
Compare
Choose a tag to compare

1.7.3

14 Mar 20:04
Compare
Choose a tag to compare
  • Fixed compatibility issues for Ruby 1.9, 2.0, 2.1. (@vivekbisen, #80)

1.6.0

06 Jun 17:13
c16bd19
Compare
Choose a tag to compare
  • Added table styles - margin_left, all_separators.

1.5.2

04 Jul 13:05
Compare
Choose a tag to compare
1.5.2

1.5.1

28 Jun 12:45
Compare
Choose a tag to compare
1.5.1