Added first version of mudform - an advanced ascii template formatter.
This commit is contained in:
parent
033b07469e
commit
a38f9f6bc4
2 changed files with 307 additions and 2 deletions
|
|
@ -529,8 +529,10 @@ class MudTable(object):
|
|||
hchar = kwargs.pop("header_line_char", "~")
|
||||
self.header_line_char = hchar[0] if hchar else "~"
|
||||
|
||||
border = kwargs.pop("border", None)
|
||||
if not border in (None, "none", "table", "tablecols",
|
||||
border = kwargs.pop("border", "none")
|
||||
if border is None:
|
||||
border = "none"
|
||||
if not border in ("none", "table", "tablecols",
|
||||
"header", "incols", "cols", "rows", "cells"):
|
||||
raise Exception("Unsupported border type: '%s'" % border)
|
||||
self.border = border
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue