[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:
tobi-wan-kenobi 2020-04-05 14:57:52 +02:00
parent e653624f5a
commit 23215303ca
2 changed files with 19 additions and 5 deletions

View file

@ -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)