From 8e2198ff018548df6aa0854f22a111bacee081a7 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 15 May 2017 10:40:07 +0100 Subject: info: tweak conflicts output code. --- Library/Homebrew/cmd/info.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Library/Homebrew/cmd') diff --git a/Library/Homebrew/cmd/info.rb b/Library/Homebrew/cmd/info.rb index 613677761..ba920d005 100644 --- a/Library/Homebrew/cmd/info.rb +++ b/Library/Homebrew/cmd/info.rb @@ -127,8 +127,12 @@ module Homebrew reason = " (because #{c.reason})" if c.reason "#{c.name}#{reason}" end.sort! - msg="Conflicts with: " - puts msg+conflicts*(",\n"+" "*msg.length) unless conflicts.empty? + unless conflicts.empty? + puts <<-EOS.undent + Conflicts with: + #{conflicts.join(" \n")} + EOS + end kegs = f.installed_kegs.sort_by(&:version) if kegs.empty? -- cgit v1.2.3