From a4cea21b8bde2897786a8fab4b33b669b935011c Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 15 Sep 2014 20:47:33 +0000 Subject: index: drop signatures from nested output We have a less-ambiguous "more..." link nowadays if somebody wants to see the full message. --- lib/PublicInbox/View.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') 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; -- cgit v1.2.3-24-ge0c7