Fix handling of unicode strings in dialog renerer

pull/1253/head
Åke Forslund 2017-11-23 14:03:35 +01:00
parent 4c6b57c5c5
commit dd9ffbac8f
1 changed files with 1 additions and 2 deletions

View File

@ -75,8 +75,7 @@ class MustacheDialogRenderer(object):
else:
index %= len(template_functions)
line = template_functions[index]
for k, v in context.items():
line = line.replace('{{' + str(k) + '}}', str(v))
line = line.replace('{{', '{').replace('}}', '}').format(**context)
return line