]> Sergey Matveev's repositories - public-inbox.git/commitdiff
view: relax line break detection
authorEric Wong <e@80x24.org>
Mon, 22 Sep 2014 18:58:57 +0000 (18:58 +0000)
committerEric Wong <e@80x24.org>
Mon, 22 Sep 2014 18:58:57 +0000 (18:58 +0000)
Often times any succession of "---" denotes the rest of the
message is too long to review at once.

lib/PublicInbox/View.pm

index 028c2767981f9e3059960738fbc2fe3f26dbd383..3860d6e4b862ea502212c73c4fb134ec69f41c49 100644 (file)
@@ -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...';