diff options
author | Eric Wong <e@80x24.org> | 2014-09-15 20:47:33 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2014-09-15 20:47:33 +0000 |
commit | a4cea21b8bde2897786a8fab4b33b669b935011c (patch) | |
tree | de4902122fb72c7cce961b89f886e16fb3f3a3c5 /lib | |
parent | 8c61f7e039599b89edc1dea137af8bcf99ee9a49 (diff) | |
download | public-inbox-a4cea21b8bde2897786a8fab4b33b669b935011c.tar.gz |
We have a less-ambiguous "more..." link nowadays if somebody wants to see the full message.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/PublicInbox/View.pm | 6 |
1 files changed, 3 insertions, 3 deletions
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; |