From 16bdfdfe8159f3813221b9023b5b49bd6c570863 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sat, 14 Oct 2017 18:39:50 +0100 Subject: Add support for italic on ^Ci. Fixes #2722. --- poezio/xhtml.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'poezio/xhtml.py') 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)] -- cgit v1.2.3