]> Sergey Matveev's repositories - public-inbox.git/commitdiff
viewvcs: separate email and date with spaces
authorEric Wong <e@80x24.org>
Tue, 23 Aug 2022 08:32:00 +0000 (08:32 +0000)
committerEric Wong <e@80x24.org>
Tue, 23 Aug 2022 22:40:56 +0000 (22:40 +0000)
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

index 2c447909168ee7ccca87a79233637918749b468a..4533af3af339158f73967044dcf90c14025c979c 100644 (file)
@@ -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);