From: Eric Wong Date: Mon, 15 Sep 2014 20:47:33 +0000 (+0000) Subject: index: drop signatures from nested output X-Git-Tag: v1.0.0~1112 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=a4cea21b8bde2897786a8fab4b33b669b935011c;p=public-inbox.git index: drop signatures from nested output We have a less-ambiguous "more..." link nowadays if somebody wants to see the full message. --- diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index ce63f7d4..028c2767 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -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;