From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-2.9 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, RP_MATCHES_RCVD shortcircuit=no autolearn=unavailable version=3.3.2 X-Original-To: meta@public-inbox.org Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id AB1B26338CE for ; Fri, 4 Sep 2015 08:59:03 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 3/9] view: adjust spacing and indentation of index threads Date: Fri, 4 Sep 2015 08:58:53 +0000 Message-Id: <1441357139-23879-4-git-send-email-e@80x24.org> In-Reply-To: <1441357139-23879-1-git-send-email-e@80x24.org> References: <1441357139-23879-1-git-send-email-e@80x24.org> List-Id: Avoid wasting precious horizontal space by indenting children excessively relative to the top-level parent. --- lib/PublicInbox/View.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index 5c53622..c53e2e1 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; -- EW