Permalink
Browse files

collapse whitespace

It's a tweet, it's not going to look good with newlines anyway.
  • Loading branch information...
1 parent db42c66 commit 4d86cc5af3d7af3140fa9098530a353cd5a0f66f @afresh1 committed Jul 8, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 commits-to-twitter.pl
View
@@ -137,6 +137,7 @@ sub make_tweet {
my $change = change_for($commit);
my $message = "$by $change: " . $commit->{'Log message'};
+ $message =~ s/\s+/ /gms;
return shorten($message), \%params;
}

0 comments on commit 4d86cc5

Please sign in to comment.