From 933344a0f9362a806f2e92fcfab95d7a09677f68 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 22 Sep 2014 18:58:57 +0000 Subject: view: relax line break detection 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(-) (limited to 'lib') 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...'; -- cgit v1.2.3-24-ge0c7