From 25a450051f1761d19ba46f1625c4c5aa030c607b Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 7 Jul 2016 02:32:23 +0000 Subject: 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. --- lib/PublicInbox/View.pm | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'lib/PublicInbox/View.pm') 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; } -- cgit v1.2.3-24-ge0c7