Strip whitespace from commit msg

This commit is contained in:
nikolark committed 2012-01-08 19:21:08 +01:00
1 parent 25baa4aeee
commit 1fbd566e19
1 file changed
+2 -2
+2 -2
View File
@@ -95,11 +95,11 @@ class ping:
def format_for_irc(self, data):
# String to be sent to irc.
commit_msg = data['commits'][0]['message']
commit_msg = data['commits'][0]['message'].strip()
who = self.format_who(data['commits'])
compare_url = self.shorten_url(data['compare'])
return "[{0}] {1} (by {2}): {3}".format(data['repository']['name'],
commit_msg,
commit_msg.trim(),
who,
compare_url)