* [PATCH] view: fix spacing on missing ghosts
@ 2015-08-19 19:32 Eric Wong
0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2015-08-19 19:32 UTC (permalink / raw)
To: meta
We must not prematurely indent if we have no message header to
display.
---
lib/PublicInbox/View.pm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm
index fd75365..5aab609 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}) {
--
EW
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-08-19 19:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-19 19:32 [PATCH] view: fix spacing on missing ghosts Eric Wong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).