From 0ba516cb6d5507da582d37717427bf169e398474 Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Mon, 29 Jul 2024 22:06:23 -0700 Subject: [PATCH] don't strip first char of colors --- k2t.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/k2t.py b/k2t.py index fbf5214..ce70a5b 100644 --- a/k2t.py +++ b/k2t.py @@ -139,9 +139,7 @@ class Entry: tag = child.tag dtag = tag.replace('-', '_') - if tag in ('frame-color', 'fill-color'): - args[dtag] = child.text[1:] - elif tag in ('dither-pattern', 'line-style', 'source', 'name'): + if tag in ('dither-pattern', 'line-style', 'source', 'name', 'frame-color', 'fill-color'): args[dtag] = child.text elif tag in ('valid', 'visible', 'transparent', 'marked', 'xfill', 'expanded'): val = {