From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.2 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, T_SCC_BODY_TEXT_LINE shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id AD03F1F61C for ; Tue, 23 Aug 2022 08:32:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1661243524; bh=ICyeLMTK8s4OCA+zCx8rh7sCuv2hwFfx46rJ2kcq4Sk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=CsxQtICtX3MXCMBxO5f21fXysefSpqtjLkmxkJsT75KIWKW4tC5SGPkR1KKTckJbO vhB0+gHR/bK+kUBndr09nqe8TilV5hyN2Iz6PcNWJd8iziAXWq7st/0sattB6wdQyr xrC5xTzIxCPZ3xSDEKBPyFI2rAyb8Y0XWZYBzwL4= From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 5/8] viewvcs: separate email and date with spaces Date: Tue, 23 Aug 2022 08:32:00 +0000 Message-Id: <20220823083203.1128993-6-e@80x24.org> In-Reply-To: <20220823083203.1128993-1-e@80x24.org> References: <20220823083203.1128993-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Horizontal tabs can be too much for narrow displays, so just add an extra space to keep the date separate from the email address. --- lib/PublicInbox/ViewVCS.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/PublicInbox/ViewVCS.pm b/lib/PublicInbox/ViewVCS.pm index 2c447909..4533af3a 100644 --- a/lib/PublicInbox/ViewVCS.pm +++ b/lib/PublicInbox/ViewVCS.pm @@ -33,7 +33,7 @@ my %QP_MAP = ( A => 'oid_a', a => 'path_a', b => 'path_b' ); our $MAX_SIZE = 1024 * 1024; # TODO: configurable my $BIN_DETECT = 8000; # same as git my $SHOW_FMT = '--pretty=format:'.join('%n', '%H', '%T', '%P', '%p', '%s', - '%an <%ae>%x09%ai', '%cn <%ce>%x09%ci', '%b%x00'); + '%an <%ae> %ai', '%cn <%ce> %ci', '%b%x00'); sub html_page ($$$) { my ($ctx, $code, $strref) = @_; @@ -123,10 +123,10 @@ sub show_commit_result ($$) { my $x = length($au) - length($co); if ($x > 0) { $x = ' ' x $x; - $co =~ s/\t/$x\t/; + $co =~ s/>/>$x/; } elsif ($x < 0) { $x = ' ' x (-$x); - $au =~ s/\t/$x\t/; + $au =~ s/>/>$x/; } $_ = ascii_html($_) for ($au, $co); $_ = $l->to_html($_) for ($s, $bdy);