And remove the legacy constant from PublicInbox::Hval.
Relying on the short <style> section should simplify our code.
# and screw up rendering on some browsers. This is the only CSS style
# feature we use.
use constant STYLE => '<style>pre{white-space:pre-wrap}</style>';
-use constant PRE => "<pre\nstyle=\"white-space:pre-wrap\">"; # legacy
my $enc_utf8 = find_encoding('UTF-8');
my $enc_ascii = find_encoding('us-ascii');
my ($class, $mime, $full_pfx) = @_;
# no <head> here for <style>...
- PublicInbox::Hval::PRE .
+ qq(<pre\nstyle="white-space:pre-wrap">) .
multipart_text_as_html($mime, $full_pfx) . '</pre>';
}