prettytable-rs icon indicating copy to clipboard operation
prettytable-rs copied to clipboard

Sub-columns in title

Open gnzlbg opened this issue 7 years ago • 1 comments

I'm trying to generate a table like this

    foo    |    bar    |    baz    |
           |           |  a  |  b  |
===========+===========+=====+=====+
 cat       |   10      |  1  |  3  |
 dog       |   23      |  2  |  4  |

where one of the title cells has 2 rows, one row with a hspan of 2, and the other row has 2 cells, and the columns spanned by these two cells propagate to the rest of the table.

Is this possible ?

gnzlbg avatar Sep 22 '18 14:09 gnzlbg

Hi again !

Having mutliple rows in the title part is currently not supported

phsym avatar Sep 22 '18 17:09 phsym