add formatter command

This commit is contained in:
Christophe Benz 2010-09-23 20:44:25 +02:00 committed by Romain Bignon
commit 4f4897e0f2
4 changed files with 91 additions and 48 deletions

View file

@ -23,8 +23,7 @@ formatters = ('htmltable', 'multiline', 'simple', 'table', 'webkit')
def load_formatter(name):
if name not in formatters:
raise Exception(u'Formatter "%s" not found' % name)
assert name in formatters
if name in ('htmltable', 'table'):
from .table import TableFormatter
if name == 'htmltable':