about summary refs log tree commit homepage
path: root/lib/PublicInbox/View.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-07-07 02:32:23 +0000
committerEric Wong <e@80x24.org>2016-07-07 02:32:23 +0000
commit25a450051f1761d19ba46f1625c4c5aa030c607b (patch)
tree83afe4230e2b170b20ce13d5f79a73684d9ddf73 /lib/PublicInbox/View.pm
parentdf58427650d5cd035cccaabe4fc7cf9b083ecc9f (diff)
downloadpublic-inbox-25a450051f1761d19ba46f1625c4c5aa030c607b.tar.gz
It should be harmless if the "[this message]" text goes past
the boundary as we bold the entire line to make it stand out.
Diffstat (limited to 'lib/PublicInbox/View.pm')
-rw-r--r--lib/PublicInbox/View.pm5
1 files changed, 1 insertions, 4 deletions
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 .= "<b><a\nid=r\nhref=\"#t\">".
+                        $$dst .= "<b>$d<a\nid=r\nhref=\"#t\">".
                                  "$attr [this message]</a></b>\n";
                         return;
                 }