diff options
author | Eric Wong <e@80x24.org> | 2015-08-19 19:31:08 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2015-08-19 19:31:32 +0000 |
commit | 9028c794d0cba5b4eca6cd69702e3bc163567469 (patch) | |
tree | 4acf473a6b471028df82acc78f88bdc13547da5c | |
parent | 80d7110a4a5334cd31f25a516dfedfc3879a9870 (diff) | |
download | public-inbox-9028c794d0cba5b4eca6cd69702e3bc163567469.tar.gz |
We must not prematurely indent if we have no message header to display.
-rw-r--r-- | lib/PublicInbox/View.pm | 4 |
1 files changed, 2 insertions, 2 deletions
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}) { |