From: Simon Ruderich Date: Mon, 11 Mar 2013 16:26:31 +0000 (+0100) Subject: tig.pl: Strip superfluous whitespace. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=038da645d825eb46018d0e92317594e54b37250e;p=config%2Fdotfiles.git tig.pl: Strip superfluous whitespace. --- diff --git a/tig.pl b/tig.pl index e3affa8..5fc7625 100755 --- a/tig.pl +++ b/tig.pl @@ -60,6 +60,8 @@ while (my $line = <$fh>) { my $message = $5; my $refs = $6; + # Strip trailing whitespace. + $prefix =~ s/\s+$//; # Color "graph". $prefix =~ s/\|/colored($&, $color_graph)/ge;