aboutsummaryrefslogtreecommitdiffstats
path: root/tabletext.py
diff options
context:
space:
mode:
authorThibaut Horel <thibaut.horel@gmail.com>2014-08-13 00:15:17 -0400
committerThibaut Horel <thibaut.horel@gmail.com>2014-08-13 00:15:17 -0400
commit259b12368c9285170d4ad67f74c7841f2ff26484 (patch)
treef15d63075b02e9489f640c14c91e34de388ab131 /tabletext.py
parente10be35c3b30202630ba486f725da9103dc9d930 (diff)
downloadtabletext-259b12368c9285170d4ad67f74c7841f2ff26484.tar.gz
Allow single character for header_corners to be consistent with corners
Diffstat (limited to 'tabletext.py')
-rw-r--r--tabletext.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tabletext.py b/tabletext.py
index 76558c1..b6fa842 100644
--- a/tabletext.py
+++ b/tabletext.py
@@ -64,6 +64,8 @@ def print_table(table, formats=None, padding=(1, 1), corners="┌┬┐├┼┤
formats = [formats] * len(table[-1])
if len(corners) == 1:
corners = corners * 9
+ if len(header_corners) == 1:
+ header_corners = header_corners * 6
widths = get_widths(table, formats, padding)
formats = add_widths(formats, widths, padding)
if header: