]> Sergey Matveev's repositories - public-inbox.git/commitdiff
index: drop signatures from nested output
authorEric Wong <e@80x24.org>
Mon, 15 Sep 2014 20:47:33 +0000 (20:47 +0000)
committerEric Wong <e@80x24.org>
Mon, 15 Sep 2014 20:47:33 +0000 (20:47 +0000)
We have a less-ambiguous "more..." link nowadays if somebody
wants to see the full message.

lib/PublicInbox/View.pm

index ce63f7d47aa8ab9716d7c3d08ca0bbcdd3344233..028c2767981f9e3059960738fbc2fe3f26dbd383 100644 (file)
@@ -109,13 +109,13 @@ sub index_entry {
 
                my $s = add_text_body_short($enc, $part, $part_nr, $fhref);
 
-               # keep signatures for now?  They shold usually be short,
-               # and sometimes footnotes/"P.S." appear there.
-
                # 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...';
 
+               # Drop signatures
+               $s =~ s/^-- \n.*\z//ms and $more = 'more...';
+
                # kill any leading or trailing whitespace
                $s =~ s/\A\s+//s;
                $s =~ s/\s+\z//s;