lib/PublicInbox/View.pm | 8 +++++++- t/plack.t | 2 ++ diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index 11a94ba938636ce28bd8d5373d5e2b3d50c811c6..2b8e220bb2a7f3ca4628a261c49f0efce04b4250 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -717,7 +717,13 @@ } for my $v ($eml->header('Date')) { $v = ascii_html($v); obfuscate_addrs($obfs_ibx, $v) if $obfs_ibx; # possible :P - $rv .= qq{Date: $v\t[thread overview]\n}; + $rv .= qq{Date: $v\n}; + } + # [thread overview] link is typically added after Date, + # but added after Subject, or even nothing. + if ($have_over) { + chop $rv; # drop "\n", or noop if $rv eq '' + $rv .= qq{\t[thread overview]\n}; } if (!$nr) { # first (and only) message, common case $ctx->{-title_html} = join(' - ', @title); diff --git a/t/plack.t b/t/plack.t index 3ba2e6fb866c99c3769832da03b73e1287d6092c..1cee286d63a61e157e53dc88c8ba0e9dec9564e4 100644 --- a/t/plack.t +++ b/t/plack.t @@ -158,6 +158,8 @@ like($html, qr!\bhref="\Q../_/text/help/"!, 'help available'); like($html, qr!