Fix stripping of keg-only reasons

This commit is contained in:
Adam Vandenberg 2011-07-30 10:11:35 -07:00
parent 7e2411eb4d
commit 0818189b5d
2 changed files with 3 additions and 3 deletions

View File

@ -65,14 +65,14 @@ class KegOnlyReason
def to_s
if @reason == :provided_by_osx
<<-EOS.chomp
<<-EOS.strip
Mac OS X already provides this program and installing another version in
parallel can cause all kinds of trouble.
#{@explanation}
EOS
else
@reason
@reason.strip
end
end
end

View File

@ -5,7 +5,7 @@ def text_for_keg_only_formula f
<<-EOS
This formula is keg-only, so it was not symlinked into #{HOMEBREW_PREFIX}.
#{f.keg_only?.strip}
#{f.keg_only?}
Generally there are no consequences of this for you.
If you build your own software and it requires this formula, you'll need