* [PATCH] view: fix spacing on missing ghosts
@ 2015-08-19 19:32 7% Eric Wong
0 siblings, 0 replies; 1+ results
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 [relevance 7%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2015-08-19 19:32 7% [PATCH] view: fix spacing on missing ghosts Eric Wong
Code repositories for project(s) associated with this public inbox
https://80x24.org/public-inbox.git
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).