Fix bug when using tags like custom column in the template language

This commit is contained in:
Kovid Goyal 2011-01-04 08:53:57 -07:00
parent 302d0c3546
commit dab89f6f79

View File

@ -131,6 +131,8 @@ class SafeFormat(TemplateFormatter):
return self.composite_values[key]
if key in kwargs:
val = kwargs[key]
if isinstance(val, list):
val = ','.join(val)
return val.replace('/', '_').replace('\\', '_')
return ''
except: