Skip to content

Commit

Permalink
bump-formula-pr: --message: add newlines before and after hr
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
zmwangx committed Nov 3, 2017
1 parent 302bc8b commit 04367c4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Library/Homebrew/dev-cmd/bump-formula-pr.rb
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,9 @@ def bump_formula_pr
EOS
user_message = ARGV.value("message")
if user_message
pr_message += <<~EOS
pr_message += "\n" + <<~EOS
---
#{user_message}
EOS
end
Expand Down

0 comments on commit 04367c4

Please sign in to comment.