Merge pull request #1253 from forslund/bugfix/unicode-encoded-dialogs

Fix handling of unicode strings in dialog renderer
pull/1257/head^2
Åke 2017-11-23 17:44:34 +01:00 committed by GitHub
commit ec1fdf928d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -76,8 +76,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