]> Sergey Matveev's repositories - public-inbox.git/commitdiff
view: tweak attribution line
authorEric Wong <e@80x24.org>
Sun, 5 Oct 2014 00:23:43 +0000 (00:23 +0000)
committerEric Wong <e@80x24.org>
Sun, 5 Oct 2014 00:23:43 +0000 (00:23 +0000)
This reduces unnecessary white space and consistently places
the attribution under the Subject.

lib/PublicInbox/View.pm

index d64aca401f4db01f4732a77fa6c83bdace02f246..9974cfa1dab42641e24c84998caf3e8fd63c2130 100644 (file)
@@ -79,15 +79,15 @@ sub index_entry {
 
        $rv .= "$pfx<a\nname=\"$name\"></a>" .
                "<a\nname=\"s$midx\"></a>" .
-               "<b>$subj</b>\n" .
-               "$pfx<a\nhref=\"#s$next\">next</a>";
+               "<b>$subj</b>\n$pfx";
 
+       $rv .= "- by $from @ $ts - ";
+
+       $rv .= "<a\nhref=\"#s$next\">next</a>";
        if ($prev >= 0) {
                $rv .= "/<a\nhref=\"#s$prev\">prev</a>";
-       } else {
-               $rv .= '    ';
        }
-       $rv .= "        by $from @ $ts\n\n";
+       $rv .= "\n\n";
 
        my $irp = $header_obj->header_raw('In-Reply-To');
        my ($anchor_idx, $anchor);