diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index 131366497a..e44efa8dd2 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -246,10 +246,13 @@ end class Formula - def keg_only_text; <<-EOS.undent + def keg_only_text + # Add indent into reason so undent won't truncate the beginnings of lines + reason = self.keg_only?.to_s.gsub(/[\n]/, "\n ") + return <<-EOS.undent This formula is keg-only, so it was not symlinked into #{HOMEBREW_PREFIX}. - #{self.keg_only?} + #{reason} Generally there are no consequences of this for you. If you build your own software and it requires this formula, you'll need