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.6 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, RP_MATCHES_RCVD 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 E9BC01F7C2; Mon, 22 Sep 2014 18:59:53 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Cc: Eric Wong Subject: [PATCH] view: relax line break detection Date: Mon, 22 Sep 2014 18:59:52 +0000 Message-Id: <1411412392-22073-1-git-send-email-e@80x24.org> X-Mailer: git-send-email 2.1.1.276.g4636a05 List-Id: Often times any succession of "---" denotes the rest of the message is too long to review at once. --- lib/PublicInbox/View.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index 028c276..3860d6e 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -111,7 +111,7 @@ sub index_entry { # drop the remainder of git patches, they're usually better # to review when the full message is viewed - $s =~ s!^---\n.*\z!!ms and $more = 'more...'; + $s =~ s!^---+\n.*\z!!ms and $more = 'more...'; # Drop signatures $s =~ s/^-- \n.*\z//ms and $more = 'more...'; -- EW