[core] Add "merged" pango support
With this commit, it is possible to add pango directives inside every piece that supports direct output (e.g. defaults/prefix or <module name>/prefix) and those will be merged - i.e. it is possible to specify defaults inside "defaults" and override/specify in the particular modules.
This commit is contained in:
parent
e653624f5a
commit
23215303ca
2 changed files with 19 additions and 5 deletions
|
@ -52,7 +52,6 @@ class block(object):
|
|||
text = attr.get('full_text', '')
|
||||
if 'full_text' in attr:
|
||||
del attr['full_text']
|
||||
|
||||
result = '<span '
|
||||
for key, value in attr.items():
|
||||
result = '{} {}="{}"'.format(result, key, value)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue