add CSV formatter (closes #350)

This commit is contained in:
Romain Bignon 2010-10-27 08:24:16 +02:00
commit d6e28f60a5
2 changed files with 44 additions and 1 deletions

View file

@ -23,7 +23,7 @@ class FormatterLoadError(Exception):
pass
class FormattersLoader(object):
BUILTINS = ['htmltable', 'multiline', 'simple', 'table', 'webkit']
BUILTINS = ['htmltable', 'multiline', 'simple', 'table', 'csv', 'webkit']
def __init__(self):
self.formatters = {}
@ -66,3 +66,6 @@ class FormattersLoader(object):
elif name == 'webkit':
from .webkit import WebkitGtkFormatter
return WebkitGtkFormatter
elif name == 'csv':
from .csv import CSVFormatter
return CSVFormatter