From: Eric Wong Date: Fri, 25 Dec 2015 10:55:58 +0000 (+0000) Subject: view: fixup ghost message errors from threading tweaks X-Git-Tag: v1.0.0~769 X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=commitdiff_plain;h=0deae67a5ee9760ce500a8a989071aa4ce08b05e view: fixup ghost message errors from threading tweaks Ghost message links didn't show up too well after commit bc067a7562a586bed92401fe1084bbe423b9451a ("view: move thread info near top of single view") Additionally, attribution lacked a space when subjects changed mid-thread. --- diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index 98d0219d..523d27fe 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -774,7 +774,7 @@ sub _inline_header { my $m = PublicInbox::Hval->new_msgid($mid); $m = $upfx . '../' . $m->as_href . '/'; if (defined $s) { - $$dst .= "$pfx$dot$s$attr\n"; + $$dst .= "$pfx$dot$s $attr\n"; } else { $$dst .= "$pfx$dot$f\n"; } @@ -791,7 +791,7 @@ sub inline_dump { _inline_header($dst, $state, $upfx, $mime, $level); } else { my $dot = $level == 0 ? '' : '` '; - my $pfx = length(' 1970-01-01 13:37 ') . + my $pfx = (' ' x length(' 1970-01-01 13:37 ')). (INDENT x $level) . $dot; $$dst .= $pfx; $$dst .= ghost_parent("$upfx../", $node->messageid) . "\n";