diff options
author | Eric Wong <e@80x24.org> | 2016-05-18 02:27:07 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-05-18 02:27:05 +0000 |
commit | 803af0b41639ce7f4976c7dca77367485473bb30 (patch) | |
tree | 7b5893ea86012afbe156d8fc2205fda87ba6f508 /lib/PublicInbox/Feed.pm | |
parent | 607ed1d281ef682239d6c3ecc70f9d5679a1f651 (diff) | |
download | public-inbox-803af0b41639ce7f4976c7dca77367485473bb30.tar.gz |
Remove unnecessary wrapper subroutines and constants which are only used once.
Diffstat (limited to 'lib/PublicInbox/Feed.pm')
-rw-r--r-- | lib/PublicInbox/Feed.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/PublicInbox/Feed.pm b/lib/PublicInbox/Feed.pm index 52fe0db4..0b864c2c 100644 --- a/lib/PublicInbox/Feed.pm +++ b/lib/PublicInbox/Feed.pm @@ -316,10 +316,10 @@ sub add_to_feed { defined $mid or return 0; $mid = PublicInbox::Hval->new_msgid($mid); my $href = $mid->as_href; - my $content = PublicInbox::View->feed_entry($mime); - defined($content) or return 0; - $mime = undef; + my $content = qq(<pre\nstyle="white-space:pre-wrap">) . + PublicInbox::View::multipart_text_as_html($mime) . + '</pre>'; my $date = $header_obj->header('Date'); my $updated = feed_updated($date); |