From e00a6f63ef80f3540a159ef4fdc4bba359dc5596 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 15 Dec 2015 20:58:50 +0000 Subject: hval: move PRE constant for wrapping UGC here User-generated content (UGC) may have excessively long lines which screw up rendering. This is the only bit of CSS we use. --- lib/PublicInbox/Hval.pm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/PublicInbox/Hval.pm') diff --git a/lib/PublicInbox/Hval.pm b/lib/PublicInbox/Hval.pm index ab6e044b..e0b85c68 100644 --- a/lib/PublicInbox/Hval.pm +++ b/lib/PublicInbox/Hval.pm @@ -10,6 +10,11 @@ use Encode qw(find_encoding); use URI::Escape qw(uri_escape_utf8); use PublicInbox::MID qw/mid_clean/; +# for user-generated content (UGC) which may have excessively long lines +# and screw up rendering on some browsers. This is the only CSS style +# feature we use. +use constant PRE => ""; + my $enc_ascii = find_encoding('us-ascii'); sub new { -- cgit v1.2.3-24-ge0c7