From: Eric Wong Date: Wed, 19 Aug 2015 19:31:08 +0000 (+0000) Subject: view: fix spacing on missing ghosts X-Git-Tag: v1.0.0~1041 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=9028c794d0cba5b4eca6cd69702e3bc163567469;p=public-inbox.git view: fix spacing on missing ghosts We must not prematurely indent if we have no message header to display. --- diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index fd753656..5aab609d 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -495,11 +495,11 @@ sub anchor_for { sub simple_dump { my ($dst, $root, $node, $level) = @_; # $root = [ Root Message-ID, \%seen, $srch ]; - my $pfx = ' ' x $level; - $$dst .= $pfx; if (my $x = $node->message) { my $mid = $x->header('Message-ID'); if ($root->[0] ne $mid) { + my $pfx = ' ' x $level; + $$dst .= $pfx; my $s = $x->header('Subject'); my $h = $root->[2]->subject_path($s); if ($root->[1]->{$h}) {