]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
tig.pl: Strip superfluous whitespace.
authorSimon Ruderich <simon@ruderich.org>
Mon, 11 Mar 2013 16:26:31 +0000 (17:26 +0100)
committerSimon Ruderich <simon@ruderich.org>
Mon, 11 Mar 2013 16:26:31 +0000 (17:26 +0100)
tig.pl

diff --git a/tig.pl b/tig.pl
index e3affa8a059de0fc96096ec74fa54f58505b9226..5fc7625ea46ff91162aab61c897dc3fdc06790f3 100755 (executable)
--- 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;