gajus / table

Formats data into a string table.
Other
894 stars 77 forks source link

Merging cells #187

Closed kamranpoladov closed 2 years ago

kamranpoladov commented 2 years ago

Is it possible to somehow merge cells with this library?

For example here two cells were merged into 0A:

╔════╤════╤════╗
║    │ 0B │ 0C ║
╟ 0A ┼────┼────╢
║    │ 1B │ 1C ║
╟────┼────┼────╢
║ 2A │ 2B │ 2C ║
╚════╧════╧════╝

If not, would this feature be released in the nearest future or are there any workarounds for now? I am developing a CLI app where tables are used extensively and merging cells is empirical.

nam-hle commented 2 years ago

Hi @kamranpoladov, it's great to hear that the merging cell or column span feature is a quite useful one. It is also requested in the past at #12. The problem is we did not figure out the possible API for merging cells. Do you think a optional configuration with a list of quadruple (row, col, rowSpan, colSpan) is sufficient?

github-actions[bot] commented 2 years ago

:tada: This issue has been resolved in version 6.8.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: