Skip to content

support option to remove space line between each data row #14

@zvier

Description

@zvier

When we use gotabulate 'Simple Table' in our container image build project isula-build to list images managerd by the daemon, the space line between each item is too sparse. This lead to a full screen page list fewer items as follows:

isula-build ctr-img images
----------------------------------------------  -----------  -----------------  ------------------------  ------------
 REPOSITORY                                      TAG          IMAGE ID           CREATED                   SIZE
----------------------------------------------  -----------  -----------------  ------------------------  ------------
 <none>                                          <none>       23e3d8bb12ff       2020-11-24 08:11:15       1.45 MB

 lzk                                             latest       f19434180a1c       2020-11-18 10:54:24       1.44 MB

 <none>                                          <none>       b6b74a847ff3       2020-11-18 10:54:19       1.44 MB
----------------------------------------------  -----------  -----------------  ------------------------  ------------

If there exist an option which can control remove those space line, more items can be display and I think also useful in other scenarios. The result in our project can be:

isula-build ctr-img images
----------------------------------------------  -----------  -----------------  ------------------------  ------------
 REPOSITORY                                      TAG          IMAGE ID           CREATED                   SIZE
----------------------------------------------  -----------  -----------------  ------------------------  ------------
 <none>                                          <none>       23e3d8bb12ff       2020-11-24 08:11:15       1.45 MB
 lzk                                             latest       f19434180a1c       2020-11-18 10:54:24       1.44 MB
 <none>                                          <none>       b6b74a847ff3       2020-11-18 10:54:19       1.44 MB
----------------------------------------------  -----------  -----------------  ------------------------  ------------

or

isula-build ctr-img images
+----------------------------------------------+-----------+-----------------+------------------------+------------+
| REPOSITORY                                   | TAG       | IMAGE ID        | CREATED                | SIZE       |
+==============================================+===========+=================+========================+============+
| <none>                                       | <none>    | 23e3d8bb12ff    | 2020-11-24 08:11:15    | 1.45 MB    |
| <none>                                       | <none>    | 71173ee82707    | 2020-11-24 08:09:43    | 1.44 MB    |
| <none>                                       | <none>    | 5d5db30060ff    | 2020-11-24 08:05:46    | 1.44 MB    |
| <none>                                       | <none>    | bde817fd2249    | 2020-11-20 11:56:34    | 1.44 MB    |
| <none>                                       | <none>    | 034e08b6cade    | 2020-11-20 11:53:06    | 1.44 MB    |
| lzk                                          | latest    | f19434180a1c    | 2020-11-18 10:54:24    | 1.44 MB    |
| <none>                                       | <none>    | b6b74a847ff3    | 2020-11-18 10:54:19    | 1.44 MB    |
| <none>                                       | <none>    | 174ad5b1cf49    | 2020-11-16 10:06:29    | 1.44 MB    |
| <none>                                       | <none>    | f28a219985c1    | 2020-11-16 08:20:17    | 1.44 MB    |
+----------------------------------------------+-----------+-----------------+------------------------+------------+

For above use it looks more reasonable. In the end, thanks for this project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions