diff --git a/k2t.py b/k2t.py index 27e7a62..c909e1d 100644 --- a/k2t.py +++ b/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 = '*/*@*'