strip the color name before parsing it
This permits to use spaces to indent themes.
This commit is contained in:
parent
410aaf1623
commit
2616166f76
1 changed files with 1 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue