robbiepowel / prettytable

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

Feature need : support break line in cell #5

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

PrettyTable don't support breakline in cell.

I would like to do :

t.add_row(['foo', 'bar\nsecond line'])

and output :

+---+-----------+
|foo|bar        |
|   |second line|
+---+-----------+

Regards,
Stephane

Original issue reported on code.google.com by klein.stephane on 2 Mar 2010 at 4:25

GoogleCodeExporter commented 8 years ago
This patch implement this feature for Ascii output

Original comment by klein.stephane on 2 Mar 2010 at 10:30

Attachments:

GoogleCodeExporter commented 8 years ago
Another patch to support html break line.

Original comment by klein.stephane on 3 Mar 2010 at 8:08

Attachments:

GoogleCodeExporter commented 8 years ago
Fixed in trunk.

Original comment by klein.stephane on 11 Mar 2010 at 1:03