optimized ansi parsing a bit as well as did some general cleanup.

This commit is contained in:
Griatch 2014-03-01 17:06:04 +01:00
parent 2aa9ef9997
commit ef8755581c
3 changed files with 68 additions and 58 deletions

View file

@ -721,7 +721,7 @@ class EvTable(object):
hchar = kwargs.pop("header_line_char", "~")
self.header_line_char = hchar[0] if hchar else "~"
border = kwargs.pop("border", "none")
border = kwargs.pop("border", "tablecols")
if border is None:
border = "none"
if not border in ("none", "table", "tablecols",