Permalink
Browse files

[10] Fixed whitespace issues in parser function

Signed-off-by: DoesntMatter <jaed1@gmx.net>
  • Loading branch information...
DoesntMatter committed Jan 21, 2012
1 parent 8b978a7 commit fe840990a8004e8534f474d5c82697aa386c2dde
Showing with 2 additions and 1 deletion.
  1. +2 −1 gitlog_to_rss.pl
View
@@ -99,11 +99,12 @@ sub ParseGitLog {
my $cmd = "git log --pretty=tformat:%H%n%cd%n%cn%n%ce%n%s%n%b%m $repo";
my $result;
$result = qx/$cmd/;
$result = "\n" . qx/$cmd/;
if ($? == -1) {
print "Command failed: $!\n";
return undef;
}
$result =~ s/\s+$//; # Remove trailing whitespaces
return HTML::Entities::encode($result);
}

0 comments on commit fe84099

Please sign in to comment.