From: Eric Wong Date: Fri, 4 Sep 2015 05:06:03 +0000 (+0000) Subject: view: adjust spacing and indentation of index threads X-Git-Tag: v1.0.0~914 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=0f17e133267d78ea24fd906a201dc503eb49779e;p=public-inbox.git view: adjust spacing and indentation of index threads Avoid wasting precious horizontal space by indenting children excessively relative to the top-level parent. --- diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index 5c536228..c53e2e17 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -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$subj\n"; my $attr;