Improved template formatting

This commit is contained in:
hbristow 2013-06-18 17:29:04 +10:00
parent 304fd03e64
commit fc16cfcf41

View File

@ -24,7 +24,7 @@ class MatlabWrapperGenerator(object):
parse_tree.build(ns)
# setup the template engine
jtemplate = Environment(loader=PackageLoader('templates', ''), trim_blocks=True)
jtemplate = Environment(loader=PackageLoader('templates', ''), trim_blocks=True, lstrip_blocks=True)
# add the custom filters
jtemplate.filters['toUpperCamelCase'] = toUpperCamelCase