-
Notifications
You must be signed in to change notification settings - Fork 173
Open
Description
This testcase:
from tabulate import tabulate
headers = ['Header#1', 'Header#2', 'Header#3']
data = []
data.append(['Alpha beta gama zeta omega', 'The weather was exceptionally good that day again', 'The files were concatenated and archived for posterity.'])
data.append(['Delta omega beta alpha nu and the rest', 'The weather was exceptionally good that day', 'They decided to engage in many businesses and all of them were successful.'])
print(tabulate(
data,
headers=headers,
tablefmt='fancy_outline',
maxcolwidths=[None, None, 8]))
produces this output:
╒════════════════════════════════════════╤═══════════════════════════════════════════════════╤═══════════════════════════════════════════════════════════════════════════════╕
│ Header#1 │ Header#2 │ Header#3 │
╞════════════════════════════════════════╪═══════════════════════════════════════════════════╪═══════════════════════════════════════════════════════════════════════════════╡
│ Alpha beta gama zeta omega │ The weather was exceptionally good that day again │ The
files
were con
catenate
d and
archived
for post
erity. │
│ Delta omega beta alpha nu and the rest │ The weather was exceptionally good that day │ They
decided
to
engage
in many
business
es and
all of
them
were suc
cessful. │
╘════════════════════════════════════════╧═══════════════════════════════════════════════════╧═══════════════════════════════════════════════════════════════════════════════╛
rubyff
Metadata
Metadata
Assignees
Labels
No labels