diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2017-10-14 18:39:50 +0100 |
---|---|---|
committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2017-10-14 18:43:26 +0100 |
commit | 16bdfdfe8159f3813221b9023b5b49bd6c570863 (patch) | |
tree | 73e05dc25485531dd08ff35db3751a7c377f1f4f /poezio/xhtml.py | |
parent | 256119a574fe37ba38a7aad0fd9952c9069ccfbf (diff) | |
download | poezio-16bdfdfe8159f3813221b9023b5b49bd6c570863.tar.gz poezio-16bdfdfe8159f3813221b9023b5b49bd6c570863.tar.bz2 poezio-16bdfdfe8159f3813221b9023b5b49bd6c570863.tar.xz poezio-16bdfdfe8159f3813221b9023b5b49bd6c570863.zip |
Add support for italic on ^Ci.
Fixes #2722.
Diffstat (limited to 'poezio/xhtml.py')
-rw-r--r-- | poezio/xhtml.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/poezio/xhtml.py b/poezio/xhtml.py index 836c3868..2f73cd3d 100644 --- a/poezio/xhtml.py +++ b/poezio/xhtml.py @@ -531,6 +531,8 @@ def poezio_colors_to_html(string): check_property('font-weight', 'bold') elif attr_char == 'u': check_property('text-decoration', 'underline') + elif attr_char == 'i': + check_property('font-style', 'italic') if attr_char in digits: number_str = string[next_attr_char+1:string.find('}', next_attr_char)] |