From 168d2091591be43ba4d3906e861e94bd3cc27ccc Mon Sep 17 00:00:00 2001 From: Niru Maheswaranathan Date: Tue, 24 Feb 2015 16:12:00 -0800 Subject: [PATCH] removed outer_char option for hr(), uses corner_char instead --- tableprint.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tableprint.py b/tableprint.py index 2870833..a0dbb81 100644 --- a/tableprint.py +++ b/tableprint.py @@ -142,7 +142,7 @@ def row(values, column_width=10, precision='2f', outer_char='|'): return rowstr -def hr(ncols, column_width=10, corner_char='+', line_char='-', outer_char='|'): +def hr(ncols, column_width=10, corner_char='+', line_char='-'): """ Returns a formatted string used as a border between table rows @@ -160,9 +160,6 @@ def hr(ncols, column_width=10, corner_char='+', line_char='-', outer_char='|'): line_char : string A character printed in between column edges, defines the row border (Default: '-') - outer_char : string - A character printed at the left and right outer edge of the row (Default: '|') - Returns ------- rowstr : string @@ -172,4 +169,4 @@ def hr(ncols, column_width=10, corner_char='+', line_char='-', outer_char='|'): hrstr = corner_char.join([('{:%s^%i}' % (line_char, column_width+2)).format('') for _ in range(ncols)]) - return outer_char + hrstr[1:-1] + outer_char \ No newline at end of file + return corner_char + hrstr[1:-1] + corner_char \ No newline at end of file