]> Sergey Matveev's repositories - public-inbox.git/commitdiff
view: adjust spacing and indentation of index threads
authorEric Wong <e@80x24.org>
Fri, 4 Sep 2015 05:06:03 +0000 (05:06 +0000)
committerEric Wong <e@80x24.org>
Fri, 4 Sep 2015 05:06:03 +0000 (05:06 +0000)
Avoid wasting precious horizontal space by indenting children
excessively relative to the top-level parent.

lib/PublicInbox/View.pm

index 5c536228efb85271d0a8a82b5da91db68cb880d4..c53e2e17b1c146caadff74b06e03435d4b29d5de 100644 (file)
@@ -809,9 +809,9 @@ sub dump_topics {
                $mid = PublicInbox::Hval->new($mid)->as_href;
                $subj = PublicInbox::Hval->new($subj)->as_html;
                $u = PublicInbox::Hval->new($u)->as_html;
-               $pfx = INDENT x $level;
+               $pfx = INDENT x ($level - 1);
                my $nl = $level == $prev ? "\n" : '';
-               my $dot = $level == 0 ? '' : '`';
+               my $dot = $level == 0 ? '' : '` ';
                $dst .= "$nl$pfx$dot<a\nhref=\"$mid/t/#u\"><b>$subj</b></a>\n";
 
                my $attr;