about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-12-25 10:55:58 +0000
committerEric Wong <e@80x24.org>2015-12-25 10:57:32 +0000
commit0deae67a5ee9760ce500a8a989071aa4ce08b05e (patch)
tree94847b9b4d1f5a147dcb212e1053903a918c477d /lib
parent47b59a589e5ba9ef44a618acebe8ba5564825ab7 (diff)
downloadpublic-inbox-0deae67a5ee9760ce500a8a989071aa4ce08b05e.tar.gz
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.
Diffstat (limited to 'lib')
-rw-r--r--lib/PublicInbox/View.pm4
1 files changed, 2 insertions, 2 deletions
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<a\nhref=\"$m\">$s</a>$attr\n";
+                $$dst .= "$pfx$dot<a\nhref=\"$m\">$s</a> $attr\n";
         } else {
                 $$dst .= "$pfx$dot<a\nhref=\"$m\">$f</a>\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";