doctor: restore newlines between checks

Closes Homebrew/homebrew#18060.
This commit is contained in:
Adam Vandenberg 2013-03-29 11:14:46 -07:00
parent 261ca7aa6a
commit 3320b15609

View File

@ -1111,13 +1111,16 @@ module Homebrew extend self
ARGV.named
end.select{ |method| method =~ /^check_/ }.reverse.uniq.reverse
first_warning = true
methods.each do |method|
out = checks.send(method)
unless out.nil? or out.empty?
lines = out.to_s.split('\n')
puts unless first_warning
opoo lines.shift
Homebrew.failed = true
puts lines
first_warning = false
end
end