bump-formula-pr: --message: add newlines before and after hr

Without an empty line before the horizontal rule (---), "Created with `brew
bump-formula-pr`." is treated as a setext header.

The newline before the hr is not part of the heredoc because putting it in
would trip up Rubocop.
This commit is contained in:
Zhiming Wang 2017-10-31 14:16:09 -04:00
parent 302bc8be22
commit 04367c4daf
No known key found for this signature in database
GPG Key ID: 5B58F95EC95965D8

View File

@ -335,8 +335,9 @@ module Homebrew
EOS EOS
user_message = ARGV.value("message") user_message = ARGV.value("message")
if user_message if user_message
pr_message += <<~EOS pr_message += "\n" + <<~EOS
--- ---
#{user_message} #{user_message}
EOS EOS
end end