[core/output] Add tests for pango formatting

This commit is contained in:
tobi-wan-kenobi 2020-04-07 20:59:26 +02:00
parent 2b8eda9d72
commit 32e5d633f4
2 changed files with 50 additions and 3 deletions

View file

@ -52,7 +52,7 @@ class block(object):
text = attr.get('full_text', '')
if 'full_text' in attr:
del attr['full_text']
result = '<span '
result = '<span'
for key, value in attr.items():
result = '{} {}="{}"'.format(result, key, value)
result = '{}>{}</span>'.format(result, text)