diff options
author | Eric Wong <e@80x24.org> | 2022-08-23 08:32:00 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2022-08-23 22:40:56 +0000 |
commit | 51ac89f11a5a2ccdceff48736aa80b74391e60bf (patch) | |
tree | 1868eccde313951b2c3bde77e1fede92e7b4fa2b /lib/PublicInbox/ViewVCS.pm | |
parent | 66344277e98dc0b7c8c0a5b988b2f9d0e602fed2 (diff) | |
download | public-inbox-51ac89f11a5a2ccdceff48736aa80b74391e60bf.tar.gz |
Horizontal tabs can be too much for narrow displays, so just add an extra space to keep the date separate from the email address.
Diffstat (limited to 'lib/PublicInbox/ViewVCS.pm')
-rw-r--r-- | lib/PublicInbox/ViewVCS.pm | 6 |
1 files 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); |