From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 11FAE2070F for ; Thu, 7 Jul 2016 03:11:35 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 2/3] view: preserve attribution for current message Date: Thu, 7 Jul 2016 03:11:29 +0000 Message-Id: <20160707031130.4634-3-e@80x24.org> In-Reply-To: <20160707031130.4634-1-e@80x24.org> References: <20160707031130.4634-1-e@80x24.org> List-Id: 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(-) diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index 7be72cf..f47ecba 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; } -- EW