]> Sergey Matveev's repositories - public-inbox.git/commitdiff
html/index: do not waste space with non-existent thread roots
authorEric Wong <e@80x24.org>
Mon, 21 Apr 2014 09:53:53 +0000 (09:53 +0000)
committerEric Wong <e@80x24.org>
Mon, 21 Apr 2014 09:53:53 +0000 (09:53 +0000)
Screen real-estate is valuable, and missing roots tend to
be false-positive matches (using Subject, not In-Reply-To
or References).

lib/PublicInbox/Feed.pm

index 54feaf5b0f98a52d5d25acc2eafc806cd9b11d1b..6658a52b8794698f9a2bc2c6b23d27c60ca54c4c 100644 (file)
@@ -287,8 +287,8 @@ sub add_to_feed {
 
 sub dump_html_line {
        my ($self, $level, $args) = @_; # args => [ $html, $midurl ]
-       $args->[0] .= (' ' x $level);
        if ($self->message) {
+               $args->[0] .= (' ' x $level);
                my $simple = $self->message;
                my $subj = utf8_header($simple, "Subject");
                my $mid = utf8_header($simple, "Message-ID");
@@ -302,8 +302,6 @@ sub dump_html_line {
                $from = xs_html($from);
                $subj = xs_html($subj);
                $args->[0] .= "<a href=\"$url.html\">$subj</a> $from\n";
-       } else {
-               $args->[0] .= "[ Message not available ]\n";
        }
        dump_html_line($self->child, $level+1, $args) if $self->child;
        dump_html_line($self->next, $level, $args) if $self->next;