From 2616166f76e5475aa5cfdef4f1f81a677eb13926 Mon Sep 17 00:00:00 2001 From: Johann Dreo Date: Thu, 10 Oct 2013 22:17:50 +0200 Subject: [PATCH] strip the color name before parsing it This permits to use spaces to indent themes. --- colout/colout.py | 1 + 1 file changed, 1 insertion(+) diff --git a/colout/colout.py b/colout/colout.py index e07d61c..fc1982c 100755 --- a/colout/colout.py +++ b/colout/colout.py @@ -290,6 +290,7 @@ def colorin(text, color="red", style="normal"): if style in styles: style_code = str(styles[style]) + color = color.strip() if color == "none": # if no color, style cannot be applied if not debug: