From cadf2eb8d8b684260572355106b470e3695b1704 Mon Sep 17 00:00:00 2001 From: Niru Maheswaranathan Date: Tue, 3 May 2016 16:38:30 -0700 Subject: [PATCH] Adds round style, sets that as the default --- tableprint.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tableprint.py b/tableprint.py index 8251d71..68d940c 100644 --- a/tableprint.py +++ b/tableprint.py @@ -42,6 +42,12 @@ DEFAULT_STYLES = { bottom=LineStyle(" ", "─", " ", " "), row=LineStyle(' ', '', ' ', ' '), ), + 'round': TableStyle( + top=LineStyle('╭', '─', '┬', '╮'), + below_header=LineStyle('├', '─', '┼', '┤'), + bottom=LineStyle('╰', '─', '┴', '╯'), + row=LineStyle('│', '', '│', '│'), + ), 'banner': TableStyle( top=LineStyle('╒', '═', '╤', '╕'), below_header=LineStyle("╘", "═", "╧", "╛"), @@ -49,7 +55,7 @@ DEFAULT_STYLES = { row=LineStyle('│', '', '│', '│'), ), } -STYLE = 'fancy_grid' +STYLE = 'round' WIDTH = 11 FMT = '5g'