Failed pipeline email plain text part doesn't strip ANSI sequence
This is because :text
in Ci::Ansi2html.convert
doesn't strip it and just return the raw byte string.
I propose to strip ANSI sequence in :text
, and if the raw byte string is needed, rename it to :raw
or :bytes
.
Discovered by @winniehell