lib/PublicInbox/View.pm | 8 +++-----
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm
index 6195fe65fb49f1175ab79ed732d0f6a5df88ad24..2e7c874779edc5d000a09f6e8d5f03e8c28fea53 100644
--- a/lib/PublicInbox/View.pm
+++ b/lib/PublicInbox/View.pm
@@ -85,12 +85,12 @@ }
my $href = $mid->as_href;
my $mhref = "m/$href.html";
my $fhref = "f/$href.html";
+ my $more = 'link';
# scan through all parts, looking for displayable text
$mime->walk_parts(sub {
my ($part) = @_;
return if $part->subparts; # walk_parts already recurses
my $enc = enc_for($part->content_type) || $enc_msg || $enc_utf8;
- my $more;
if ($part_nr > 0) {
my $fn = $part->filename;
@@ -105,7 +105,7 @@ # 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 = 1;
+ $s =~ s!^---\n.*\z!!ms and $more = 'more...';
# kill any leading or trailing whitespace
$s =~ s/\A\s+//s;
@@ -114,13 +114,11 @@
# add prefix:
$s =~ s/^/$pfx/sgm;
- $s .= "\n$pfx(more...)\n" if $more;
-
$rv .= $s . "\n";
++$part_nr;
});
- $rv .= "$pfxlink ";
+ $rv .= "$pfx$more ";
my $txt = "m/$href.txt";
$rv .= "raw ";
$rv .= html_footer($mime, 0);