Added first version of mudform - an advanced ascii template formatter.

This commit is contained in:
Griatch 2014-02-01 14:25:57 +01:00
parent 033b07469e
commit a38f9f6bc4
2 changed files with 307 additions and 2 deletions

View file

@ -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