auto-prepend # to colors
This commit is contained in:
parent
745bbf6144
commit
51243f3bbc
1 changed files with 2 additions and 0 deletions
2
k2t.py
2
k2t.py
|
|
@ -179,6 +179,8 @@ class Entry:
|
|||
if not isinstance(val, str):
|
||||
val = str(val).lower()
|
||||
if val != 'none':
|
||||
if tag.endswith('-color') and not val.startswith('#'):
|
||||
val = '#' + val
|
||||
el2.text = val
|
||||
elif tag == 'source':
|
||||
el2.text = '*/*@*'
|
||||
|
|
|
|||
Loading…
Reference in a new issue