From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-2.9 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=unavailable version=3.3.2 X-Original-To: meta@public-inbox.org Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 865A020579 for ; Tue, 1 Mar 2016 02:08:38 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH] view: do not hide patches or signatures Date: Tue, 1 Mar 2016 02:08:38 +0000 Message-Id: <20160301020838.977-1-e@80x24.org> List-Id: It's often not that much information and may be useful to reduce HTTP requests a reader will want to make. --- lib/PublicInbox/View.pm | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index 6b81678..de7bdf9 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -254,17 +254,6 @@ sub index_walk { my ($fh, $part, $enc, $part_nr, $fhref, $more) = @_; my $s = add_text_body($enc, $part, $part_nr, $fhref); - if ($more) { - my $m = 0; - # drop the remainder of git patches, they're usually better - # to review when the full message is viewed - $s =~ s!^---+\n.*\z!!ms and $m = 1; - - # Drop signatures - $s =~ s/^-- \n.*\z//ms and $m = 1; - $$more = "More...\n\n$$more" if $m; - } - # kill any leading or trailing whitespace lines $s =~ s/^\s*$//sgm; $s =~ s/\s+\z//s; -- EW