Skip to content
Snippets Groups Projects
Commit 88538c2b authored by Adam Vandenberg's avatar Adam Vandenberg
Browse files

Fix stripping of keg-only reasons during install

parent 80335bba
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment