Replace leading whitespace in commit message.

This allows for proper indentation to display ASCII art.

Fixes travis-ci/travis-ci#2003
This commit is contained in:
Mathias Meyer 2014-05-03 17:54:30 +02:00
parent 8926d4e6c0
commit 2a40ba59a7

View File

@ -41,6 +41,7 @@ require 'config/emoij'
if !!options.repo
message = @githubify(message, options.repo.get('owner'), options.repo.get('name'))
message.replace /\n/g, '<br/>'
message.replace /^ +/, '&nbsp;'
pathFrom: (url) ->
(url || '').split('/').pop()