Commit graph

8 commits

Author SHA1 Message Date
Denis Kasak
fbec1c9f96 Remove stray print. 2018-03-24 14:40:03 +01:00
Denis Kasak
6e9275da7f Fix charrefs.
Forgot to include # when reconstructing charrefs from their "name".
2018-03-24 14:38:00 +01:00
Denis Kasak
42f34f749b Handle combination of strikethrough and other attributes.
Strikethrough has to be done first, before handling any other attribute,
because otherwise it doesn't render correctly.

The following changes were made:

1. When striking due to redaction, we simply strip all the other
   attributes and then do the strikethrough, because this is the only
   practical option.
2. When rendering rich text received from the server, we ensure we
   handle strikethrough first, before any other attribute.
2018-03-23 09:51:58 +01:00
Denis Kasak
c6e34dd0b1 Escape each HTML ref individually. 2018-03-22 20:47:03 +01:00
Denis Kasak
0a868b80bb Add HTML character reference parsing test. 2018-03-19 11:01:24 +01:00
poljar (Damir Jelić)
416e154359 Fix tests for python2. 2018-03-18 23:31:57 +01:00
Denis Kasak
d7485cc746 Always output HTML colors as hex codes. 2018-03-03 12:34:26 +01:00
poljar (Damir Jelić)
fc6a6e9da9 tests: Implement mock weechat module and add some color tests. 2018-03-02 22:59:43 +01:00