From: Eric Wong Date: Mon, 22 Sep 2014 18:58:57 +0000 (+0000) Subject: view: relax line break detection X-Git-Tag: v1.0.0~1109 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=933344a0f9362a806f2e92fcfab95d7a09677f68;p=public-inbox.git view: relax line break detection Often times any succession of "---" denotes the rest of the message is too long to review at once. --- diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index 028c2767..3860d6e4 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...';