chaodluffy / prettytable

Automatically exported from code.google.com/p/prettytable
Other
0 stars 0 forks source link

Stretching columns when the data are longer than the header #69

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When the data in a column in lengthier than the header,

I get this, 

+------------------+------------------+
|     Host ID      |     Hostname     |
|                  |                  |
+==================+==================+
| KubHostSlave1    | slave1.dev.kuber |
|                  | netes.example.or |
|                  | g                |
| KubHostSlave2    | slave2.dev.kuber |
|                  | netes.example.or |
|                  | g                |
+------------------+------------------+

But I need it like this.

+------------------+-----------------------------------+
|     Host ID      |     Hostname                      |
|                  |                                   |
+==================+===================================+
| KubHostSlave1    | slave1.dev.kubernetes.example.org |
|                  |                                   |
| KubHostSlave2    | slave2.dev.kubernetes.example.org |
|                  |                                   |
+------------------+-----------------------------------+

I checked the documentation but could not find any way to do this.
I would be thankful if you can add this feature too 
( If it is already there, please pardon me and guide me to achieve this ). 

Original issue reported on code.google.com by AgentMil...@gmail.com on 2 Aug 2015 at 8:28