[core/output] Add tests for pango formatting
This commit is contained in:
parent
2b8eda9d72
commit
32e5d633f4
2 changed files with 50 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue