From: Eric Wong Date: Thu, 7 Jul 2016 02:32:23 +0000 (+0000) Subject: view: preserve attribution for current message X-Git-Tag: v1.0.0~296 X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=commitdiff_plain;h=25a450051f1761d19ba46f1625c4c5aa030c607b view: preserve attribution for current message It should be harmless if the "[this message]" text goes past the boundary as we bold the entire line to make it stand out. --- diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index 7be72cfc..f47ecba0 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -735,16 +735,13 @@ sub _skel_header { if ($attr ne $ctx->{prev_attr} || $ctx->{prev_level} > $level) { $ctx->{prev_attr} = $attr; - } else { - $attr = ''; } $ctx->{prev_level} = $level; if ($cur) { if ($cur eq $mid) { delete $ctx->{cur}; - $$dst .= $d; - $$dst .= "". + $$dst .= "$d". "$attr [this message]\n"; return; }