diff options
Diffstat (limited to 'tabletext.py')
| -rw-r--r-- | tabletext.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tabletext.py b/tabletext.py index 1245d26..2d78f5c 100644 --- a/tabletext.py +++ b/tabletext.py @@ -46,6 +46,8 @@ def format_row(row, formats, padding, ver): def add_width(format_string, width): + if width == 0: + return format_string regexp = r",?(\.\d+)?(b|c|d|e|E|f|F|g|G|n|o|s|x|X|%)?" match = re.match(regexp, format_string) begin, end = match.span() |
