diff options
author | Florent Le Coz <louiz@louiz.org> | 2011-11-12 00:15:00 +0100 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2011-11-12 00:15:00 +0100 |
commit | ccceb19c60b7874a2e003e375847ce89089410cc (patch) | |
tree | f197a79c034bd2e454b294e2f27fc3866e583158 /src/xhtml.py | |
parent | 971aaada27d0385c35a2e3c2e8b5edad9a901e16 (diff) | |
parent | a6bcb244f71996de6b873a4148bff081e5fb55eb (diff) | |
download | poezio-ccceb19c60b7874a2e003e375847ce89089410cc.tar.gz poezio-ccceb19c60b7874a2e003e375847ce89089410cc.tar.bz2 poezio-ccceb19c60b7874a2e003e375847ce89089410cc.tar.xz poezio-ccceb19c60b7874a2e003e375847ce89089410cc.zip |
Merge branch 'master' of https://git.louiz.org/poezio
Diffstat (limited to 'src/xhtml.py')
-rw-r--r-- | src/xhtml.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/xhtml.py b/src/xhtml.py index 99e0bf01..e7a045fa 100644 --- a/src/xhtml.py +++ b/src/xhtml.py @@ -258,7 +258,9 @@ def xhtml_to_poezio_colors(text): if key == 'background-color': pass#shell += '\x191' elif key == 'color': - shell += '\x19%d}' % get_color(value) + color = get_color(value) + if color != -1: + shell += '\x19%d}' % color elif key == 'font-style': shell += '\x19i' elif key == 'font-weight': |